• I recently upgraded from v3.2.1 to v3.3.1. I checked my Archives page today and found that <?php the_excerpt() ?> doesn’t display excerpts from posts after I did the upgrade, but does show them for posts made before.

    Here’s my link:
    https://respectyourself.org.uk/category/messages/

    If you view this, posts made between today (10th Jan 2012) and 30th December (around the time I upgraded) have no excerpt, but if you click “older entries” at the bottom, excerpts start appearing on December 29th and before. The format of the posts hasn’t changed – I use a standard HTML template for all posts (and you can verify this by viewing a post that displays an excerpt vs one that doesn’t) – and the only thing I can think has changed is doing the upgrade. For all the entries where an excerpt displays, it shows everything before the <!–more–> code as expected.

    The code in archives.php is:
    <div class=”entry”><?php the_excerpt(); ?></div>

    If you view the HTML of the generated page, you’ll see this div has empty content for the posts where no excerpt shows.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Try:
    – switching to the Twenty Eleven theme by renaming your current theme’s folder in wp-content/themes and adding “-old” to the end of the folder name using FTP or whatever file management application your host provides.

    resetting the plugins folder by FTP or phpMyAdmin.

    – re-uploading all files & folders – except the wp-content folder – from a fresh download of WordPress.

    – re-running the upgrade via wp-admin/upgrade.php

    Thread Starter qaws

    (@qaws)

    Hi esmi,
    I did as you suggested, but when I reran the upgrade it gave me an Internal Server Error at the end when it navigated to about.php?upgrade or similar. I don’t know if this has affected anything.

    If I use the TwentyEleven theme, the excerpts display fine – I think using get_template_part( 'content', get_post_format() );. Using my own theme, which simply uses the_excerpt(), I still have the issue.

    Interestingly, when I replaced get_template_part( 'content', get_post_format() ); from TwentyEleven with the_excerpt();, I got the same behaviour – TwentyElevn didn’t display the excerpts for the period, but did display the excerpts for the period before the December upgrade, which suggests to me that wherever the_excerpt is stored, it’s now not being stored there when I save a post. (I’ve also tried editing one of the problem posts since tonight’s re-install to see if that would repopulate the_excerpt but it hasn’t).

    Thread Starter qaws

    (@qaws)

    Update: I’ve found in wp-admin that I can add ‘Excerpt’ to the ‘Edit Post’ screen using the Screen Options. This is blank for all posts, before and after the December upgrade.

    If I add in a manual excerpt for one of the problem posts, it displays in the Category archives page. I don’t know if this is using an overriding database field instead of where WP generates the excerpt to – I guess it must be if it’s blank for all the posts where the excerpt displays correctly.

    So as a workaround I can manually paste my excerpt in, but it seems like WP has stopped generating them automatically?

    Thread Starter qaws

    (@qaws)

    Resolved: ‘The Simple Post Template’ plugin adds three blank space characters into the Excerpt field. So it was displaying my manual excerpt – turns out the plugin was overriding WP generating the excerpt by adding a manual excerpt of blank spaces.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Archives page does not show excerpts for posts created after upgrade’ is closed to new replies.