Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #122952
    DiabolicalPotato
    Participant

    Hello there. All I can say is: Fotographie Pro is perfect for my website, I just need it to work.

    Before I went ahead and ordered the Pro version, I used the base version of Fotographie to test all of my changes and had no issues. All of the plugins worked, no issues with any of the page content. But when I upgraded to Fotographie Pro and began to start formatting my existing content, the only post type that I could get to work correctly was the Default Template. Every other Post Template is broken.

    As far as I can deduce, the problem has something to do with the Post Templates themselves, then something gets broken in the PHP loop and the site is unable to display the remaining content. It can display static elements in the sidebar (Text, Images) but cannot retrieve the content of the posts or display any of the subsequent buttons/links (share buttons, “edit post” link, tags, categories, etc.)

    https://learntocounter.com/trevor-is-here/
    – Example of the Default Template. Works exactly as it should.

    https://learntocounter.com/test-post/
    – Test post set to “No Sidebar”. Displays nothing. Same results for “Full-Content-Width Page” and “Full-Content Page”.

    https://learntocounter.com/another-test-post/
    – Post set to “Left Sidebar”. Same result for “Right Sidebar”: Only displays static sidebar elements and no post content.

    I have tried reinstalling Fotographie Pro and resetting all the settings to the default. I have also done the usual work with all my plugins to check if any are interfering. PLEASE NOTE THAT I CAN SWITCH FREELY BETWEEN THE PRO AND BASIC VERSIONS OF FOTOGRAPHIE AND THE BASIC VERSION WORKS FINE, but I cannot finalize my website until the Pro Post Templates are available and working.

    So I really have no idea what’s going on, and the sooner you can help me out with this, the better. Thank you.

    Also note that I’m currently hiding all content on the frontpage so that I can troubleshoot this without having my reader get mad at me.

    #122994
    Mahesh
    Participant

    @diabolicalpotato: I tested your website, and yes it is exactly as you’ve described. I also tested the same on our server both Free and Pro version and found no such issue. Do you have any plugin installed, if yes, please try disabling the plugins and check if that fixes the issue. Let me know if the problem persist.

    Regards,
    Mahesh

    #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.

    #123061
    Mahesh
    Participant

    @diabolicalpotato: Yes, found it. There has been an issue in the theme. Thank you for letting us know. The bug will be fixed in the next update which will be released soon.

    Regards,
    Mahesh

    #123064
    DiabolicalPotato
    Participant

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Post Layouts Are Broken.’ is closed to new replies.