• Hi all,

    I have come across an issue where all the posts on my site are displaying correctly except for two.

    These two, when loaded, show the featured image as all the others do, but none of the text is being displayed.

    I have checked the content of the posts and compared them to the others to see if there was anything untoward in them, which there isn’t.

    I have even copied the contents, permanently deleted the posts and created them from scratch and they still do not show the content.

    Can anyone shed any light on what could be happening? A google search is hard to do as I’m unable to word it in a way which does not get taken in a completely different route.

    The site is at A Film to Watch and the two posts I am having issues with are: Paycheck & Warm Bodies.

    TIA

Viewing 8 replies - 1 through 8 (of 8 total)
  • Are you having issues displaying the post content on that page that you’ve linked too? Did you create his theme? Is it a child theme of another theme?

    Thread Starter thumoo

    (@thumoo)

    I should have linked to the specific pages but wasn’t sure about whether the links would go through.

    The link to one of the films that is not working:

    Warm Bodies

    A link to one of the posts that is working for comparison:

    A Good Day to Die Hard

    I didn’t create the theme. It is called moviemag and not a child theme.

    Do you have access to the theme via FTP? We’ll need to see what that template file is actually doing. All I can tell from this page is that the content is not being generated on the page.

    Thread Starter thumoo

    (@thumoo)

    I have complete access. It’s all on my own hosting.

    Ok,

    Can you show us what the contents of that template are? I would image its single.php or something similar.

    If your content is being entered into the standard content editor, all you should need is the_content();

    If its being generated by a secondary metabox that the them has set up, you’ll see something like get_post_meta().

    Are you using a plugin or a custom function to alter the length of the content?

    Thread Starter thumoo

    (@thumoo)

    I don’t understand how checking this will make any difference. Surely if there was a problem creating single posts then it would affect all the posts and not just two of them?

    There are no plugins used that change anything on the posts themselves. Again, what is used in one post is used in all the others.

    Ok. I was just trying to go through a list of common issues , to help narrow it down but seeing as you know this won’t help I guess we’ll wait for someone else to chime in and help you resolve your issue.

    Best,
    Evan

    Thread Starter thumoo

    (@thumoo)

    Apologies. I was thinking out loud and didn’t think how it would sound on the other end.

    I have the file single.php which contains:

    <?php
    /**
     * The Template for displaying all single posts.
     *
     * @package Theme Meme
     */
    
    get_header(); ?>
    
    	<div class="row">
    		<div class="col-md-8 content-area" role="main">
    
    		<?php while ( have_posts() ) : the_post(); ?>
    
    			<?php get_template_part( 'content', 'single' ); ?>
    
    			<?php themememe_content_nav( 'nav-below' ); ?>
    
    			<?php
    				if ( comments_open() || '0' != get_comments_number() )
    					comments_template();
    			?>
    
    		<?php endwhile; ?>
    
    		<!-- .content-area --></div>
    
    		<?php get_sidebar(); ?>
    	</div>
    
    <?php get_footer(); ?>
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘All but two posts showing content.’ is closed to new replies.