Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Post Layouts Are Broken. #123064
    DiabolicalPotato
    Participant

    Not a problem at all, happy to help, now I can work on writing silly things on the internet.

    in reply to: Post Layouts Are Broken. #123051
    DiabolicalPotato
    Participant

    Okay, I figured it out. I hate to disappoint you guys, but it’s an error in the theme code, it’s on your end.

    So far as I can tell, I’m obviously not an expert on this, but the issue is when the specific Post/Page Template calls for the article content, something in each Template along the lines of:

    				<?php
    				while ( have_posts() ) : the_post();
    
    					if ( 'page' === get_post_type() ) {
    						get_template_part( 'components/page/content', 'page' );
    					} else {
    						get_template_part( 'components/page/content', 'single' );
    					}

    When I change “get_template_part( ‘components/page/content’, ‘single’ );” to “get_template_part( ‘components/post/content’, ‘single’ );”, the content displays as intended. The Default Template (which I believe is the No Sidebar layout) does not make the error and that’s why it doesn’t have the issue.

    I’ve gone through and tested this in all of my layouts and they now appear to be working correctly. If you have any other guidance you can give me on these changes, please let me know, but as far as I can see, the problem has been fixed.

Viewing 2 posts - 1 through 2 (of 2 total)