• A friend has asked me to help troubleshoot her site’s blog.

    https://mylifestartsatfortytwo.com/

    When trying to view a single post on the site, the single.php page is not displaying the post content. The php appears as though it should. the_content() is there, it is in a loop, but I am stuck as to where to turn now.

    Before I go telling her to de-activate all her plugins and try activating them one-by-one I thought I might reach out for any other possible solutions that might exist.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Can you postwhat code you have between the following?

    <div class="entry">

    What do you have in here?

    <span class="slashdigglicious">

    Thread Starter netanator

    (@netanator)

    Sure, here’s the code that is directly from the theme in single.php:

    <div class="entry">
    
    				<?php the_content(); ?>
    				<?php link_pages('<p><strong>Pages:</strong>','</p>','number'); ?>
    
    				<p class="postmetadata">
    <?php _e('Tags:'); ?> <?php the_category(', ') ?> <?php edit_post_link('Edit', ' | ', ''); ?> // <strong><?php comments_popup_link('Add Comment »', '1 Comment »', '% Comments »'); ?></strong>
    				</p>
    
    			</div>
    
    				<div class="comments-template">
    					<?php comments_template(); ?>
    				</div>
    
    		</div>

    And the slashdigglicious is a plug-in that she installed at some time. That ‘<span class=”slashdigglicious”>’ is what is generated by the plug-in.

    The plugin elimination looks like the next step.

    Thread Starter netanator

    (@netanator)

    I have deactivated the slashdigglicious plug-in thinking that it was the culprit. But that didn’t seem to have any effect.

    Actually, what I am considering at this point is un-installing the theme, deactivating all plug-ins and reinstalling the theme and adding plug-ins one at a time.

    It’s just a tedious process I’m not looking forward to.

    Thanks for your help ??

    Hi….I had the same exact problem and I tried deactivating my plugins and stuff but I found out that mine was in the permalink structure.

    My permalinks were set to display like this /%year%/%monthnum%/%day%/%postname%/ and everything was going fine….well I decided I needed the post id in the url so I added %post_id%/ to the end of all that and thats when my problems started although I did not know it. Then I got to realizing that my single posts wasn’t showing up so i done this and that and was terribly confused and like you said….everything was still there ….the_content()….everything. Then I got to thinking what I had changed on my site in the last few weeks and the permalink structure came to mind. I changed it and it works like a charm!

    So…..check your permalink structure!!! LOL!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Single.php post content not showing’ is closed to new replies.