Support » Fixing WordPress » Just one post cut off in the middle of main page

  • andrewkro



    I’m developing a website for a client and I have one mystery post that is displaying as an excerpt in the middle of main blog page:

    All the posts are displayed in full, except for post #2:
    Jenny Yoo Bridesmaid Dress Trunk Show – Indianapolis, IN

    It’s cut off as an excerpt, but the weird thing is there’s no the “read more” separator in the post, no special attributes, no custom fields, nothing what could cause it to display like that.

    Am I missing something? Any ideas what might cause it?


    P.S. The code to display the main blog page is:

    <div id="contentleft">
        $temp = $wp_query;
        $wp_query= null;
        $wp_query = new WP_Query();
        if ($wp_query->have_posts()) : while ($wp_query->have_posts()) : $wp_query->the_post();
        global $more; $more = 0;
    		<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
    		<?php the_content(__('Read more'));?>
    <?php comments_template(); ?>

Viewing 1 replies (of 1 total)
  • s_ha_dum


    You’ve got a respectable number of errors, which I’d fix. Its hard to tell what the problem is though. It might be a stretch but I’d start looking at the post content for unencoded (and possibly invisible) control characters. Any chance this post was written in or copied from something like Word?

    You shouldn’t need the ‘global $more; $more = 0;‘ inside the loop like that. You should be able to more that to just above the Loop and save yourself a little CPU time. I doubt this is your problem though.

Viewing 1 replies (of 1 total)
  • The topic ‘Just one post cut off in the middle of main page’ is closed to new replies.