Support » Fixing WordPress » twentyten excerpt not working???

  • pedro_m1guel


    Hi guys,

    I know that a lot of people has already asked this and I’ve seen a lot workarounds but for some reason I can’t get the excerpt to work :(.

    So I have the twentyten theme and on the loop.php on line 137 I’m changing this <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?> to this <?php if ( is_archive() || is_search() || is_page(2) || is_page('blog')): ?> and yet the posts keep showing in full under the page blog page_id=2. Unfortunately the site is in my localhost so I cannot leave a link.

    Also on ‘Settings -> Reading Settings’ I have the following:
    Front Page displays – A Static page (Front Page:Home, Posts Page:Blog)

    For each article in a feed show: Summary

    If I click in one of the ‘Categories’ (menu column on the right) I see all the posts related to that category with the excerpt (only 40 words are displayed) but once I click on the Blog menu button it takes me to the Blog page and displays all the posts in full.

    Anyone can help? Pleaseeee
    And I do apologise for posting this again but I’m going nuts 🙁

Viewing 1 replies (of 1 total)
  • Michael


    Forum Moderator

    loop.php is not used for static pages, so any is_page() won’t work;

    if you are using a page template for page 2, you could try to check with is_page_template('template-filename.php');
    and if page ‘blog’ is the posts page, you could try to check with is_home()

Viewing 1 replies (of 1 total)
  • The topic ‘twentyten excerpt not working???’ is closed to new replies.