Support » Fixing WordPress » Archive & Search show content instead of excerpt after upgrade to 3.1

  • Hi there,

    Despite my code (hereunder) in loop.php of my child theme, my site is showing the full content instead of excerpt (+ continue reading).

    I did not change anything except upgrading to 3.1, so I guess that caused the problem.

    Does anyone has an idea how to fix it ?

    Thanks heaps !

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Sorry for the code being too long.

    However my problem remains: It seems that since the update to 3.1, wordpress is no longer generating the automatic excerpt with the first 55 words of the post (when a post has no manual excerpt) and although the template uses the the_excerpt() template tag, it shows the full content instead.

    Any idea how to fix that ?

    Hi there, I still did not find a solution. Since the upgrade to 3.1. My search / archive / home pages are screwed up. It deleted all my automatic excerpt, it shows now and the thumbnail and the original image (i do not want to show the last one) and it removed the arrow after ‘continue reading’. I would be very grateful if someone could help, since I am no expert in amending the template.

    <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?>

    Thank you very much in advance.



    Forum Moderator

    what theme are you using?

    have you checked through these:

    Twenty ten: You can check it here:
    I used the method described here to handle the thumbnails as a regular theme: and it used to work fine with before 3.1.

    I checked the link you sent 3 weeks agao and could not find any issue as mine. I will read it again as maybe some other users discovered the problem since.



    Forum Moderator

    how do you get to archive pages or search result pages?

    i can’t find any link to these in your site.

    if you can’t access them, does it matter what these pages show?

    contrary to standard twenty ten bahaviour, the home page shows excerpts.

    i manually entered an archive link, and all i get is excerpts.
    for search results the same – excerpts; but with image and thumbnail.

    what is the code of your loop.php (please usse the )

    Sorry, home and media are archive page but for easy use I added a category and searc widget in the sidebar.

    Here is the part of my loop for such pages:
    I’ve never used pastebin before so I hope it is what you meant.

    Any idea how to get rid of the normal image ? I only want the show the 150 px thumbnail. As I recall, it was working find before the upgrade.
    Same story of the arrow after ‘continue reading’. How can an upgrade make it disappear when nothing in the loop.php changed ?



    Forum Moderator

    unfortunately, what you pasted is not the code that would show any search results or archive pages, for instance – the html structure does not match.

    until you find the template file responsible for archive and search, everything is just guess work.

    as for the image showing in the ‘excerpt’ beside the thumbnail – do you use an ‘advanced excerpt’ plugin or so?

    the ‘continue reading’ (without an arrow) has a css class of .pgee-read-more – does this ring a bell?

    What do you mean it is not the right structure ? I shall post the whole loop:
    And this is the part I modified to add the thumbnail.

    I am not using a plugin for the excerpt no. Just <?php the_excerpt(); ?> instead of <?php the_content(); ?>.

    Thank you for your help and I am sorry if I can not be more precise. As I already said, I am a beginner with WordPress. All I know is that everything was working fine until I upgraded to 3.1, but since I use a child theme, that should not have had any influence, does it ?



    Forum Moderator

    What do you mean it is not the right structure ?

    i was wrong there, just did not see enough of the template.

    looking at the full template, i still cannot see:
    why it shows a kind of excerpt, but with formatting;
    where the image would come from;
    where the thumbnail is inserted;
    why this would use a different ‘continue reding’ than Twenty ten;

    i assume some information is missing, which cannot access.

    possibly you are using the ‘excerpt editor’ plugin which is creating all this (?)

    unless you find out which is causing the above (as you have direct access to all theme and site info), my suggestion would be to remove the thumbnail, and leave it as it is.

    ok, well, it’s not such good news that you do not find the issue either. But at least I know I am not crazy.

    As a test, I will re-activate the original theme and make the template amendment (to show thumbnails and excerpt only) to loop.php and function.php to see if that works. If that does, there must be another template causing the issue. Maybe header.php ?

    Thank you anyway for your time.

    hi, I know that this topic is old, but I’ve had the same problem
    and I whant to post my solution here in case someone else is dealing with it.
    In my case the problem seemed to be the Relevanssi plugin. In his options page make sure that Create custom search result snippets box is unchecked. That should do the trick.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Archive & Search show content instead of excerpt after upgrade to 3.1’ is closed to new replies.