WordPress.org

Ready to get started?Download WordPress

Forums

Just one post cut off in the middle of main page (2 posts)

  1. andrewkro
    Member
    Posted 4 years ago #

    Hi,

    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:
    http://www.raelynns.com/indianapolis-prom-bridesmaid-dresses/latest-news.html

    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?

    Andrew

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

    <div id="contentleft">
        <?php
        $temp = $wp_query;
        $wp_query= null;
        $wp_query = new WP_Query();
        $wp_query->query('showposts=5'.'&paged='.$paged);
        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(); ?>
  2. s_ha_dum
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic