• I’m using a child theme of twentythirteen. On my archive pages, content.php calls for the_excerpt and I have created manual excerpts for every page/post:

    <?php if ( is_search() || is_home() || is_archive() ) : // Only display Excerpts for Search, Articles (blog) or Archive pages ?>
    	<div class="entry-summary">
    		<?php the_excerpt(); ?>
    	</div><!-- .entry-summary -->

    Yet what displays is the automatic excerpt WP generates followed by the telltale ellipsis (…). I’ve gone through all my plug-in settings to see if anything’s going on there, and I can’t find a thing.
    I’ve even tried entering some text right after the “if” statement above to make sure the archive pages are indeed using that section of content.php, and they definitely are using that part of the code. Just not using my carefully crafted manual excerpts, much to my frustration.
    Any ideas on what else I can try or where else I can look? The site is in development, so I can’t link to it here.
    Thanks very much for any help!

Viewing 6 replies - 1 through 6 (of 6 total)
  • So you want the (…) to be removed?

    function trim_excerpt($text)
    {
    return rtrim($text,'[...]');
    }
    add_filter('get_the_excerpt', 'trim_excerpt');
    Thread Starter janh52

    (@janh52)

    Thanks, Matthew, but the problem isn’t the (…). It’s that the archive pages are showing the wrong excerpt. Instead of showing the manual excerpt that I’ve entered in each post’s Excerpt field, it’s creating an automatic excerpt using the first 55 words of the post itself. My understanding was that the_excerpt FIRST looks for whether a post has an excerpt in the Excerpt field; if it doesn’t, THEN it creates one automatically from the post. So … it doesn’t seem to be looking first for my manually created excerpts for each post.

    Have you looked through the WordPress settings to see if you have selected any excerpt settings?

    Thread Starter janh52

    (@janh52)

    Matthew, I’m not aware of any excerpt settings within WP settings. Where are they?

    try to temporarily deactivate all plugins to see if that changes something.

    Thread Starter janh52

    (@janh52)

    Thank you, alchymyth. I found the culprit: Advanced Post Pagination. I really like that plugin, so I’ve reported the issue on their web site and hope they have a resolution.
    Thanks again!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘manual excerpt won't display even though it's available’ is closed to new replies.