Page Excerpt

Page excerpt allows you to create hand-crafted summaries of your content, much like you would with a post.

Questions? Leave them in the comments and I’ll get back to you ASAP

38 Responses to “Page Excerpt”

  • Flow Says:

    First off, thanks for this great Plugin!
    But I got one question:
    How can I customize the length of the shown page excerpt without having to force my customer to always test if the length of the excerpt fits the size of the frontend box?
    Altering the general excerpt length by editing the functions.php (as you can see below) doesn’t seem to work.
    [code]
    add_filter('excerpt_length', 'my_excerpt_length');
    function my_excerpt_length($length) {
    return 20; }
    [/code]

    Thanks in advance!

  • brent Says:

    great plugin – thanks

  • Netke Says:

    For some reasons on my two WP sites this plugin doesn’t work. Both of them are version 2.9.1 and when I activate plugin, nothing happens. Do I have to configure something else?

  • Netke Says:

    My bad… I checked out again and it’s working just fine. :)

  • Amy Says:

    I can’t seem to get this to work. I installed the plugin and the excerpt box is now showing, but when I enter text in the excerpt…it doesn’t do anything. The whole post still shows. Any idea what the problem could be?

  • jeremy.massel Says:

    Amy, are you using WP 3.0? I haven’t tested the excerpt on it yet, so I’m not sure if it works.

    In your theme, are you calling “the_content()” or “the_excerpt()”? You need to call the excerpt method, or else you won’t get that text. Hope that helps!

  • Amy Says:

    Thank you for replying Jeremy!
    Sorry for my ignorance…but how/where do I call “the_excerpt()”? I am using WP 3.0…but it should be working as I see the excerpt box there, shouldn’t it?

  • jeremy.massel Says:

    Amy, it’s likely that your theme isn’t using the_excerpt().

    I’d check out your theme files, index.php, archive.php, and category.php would be a good start. If you can find the_content() and replace it with the_excerpt(), you’ll probably be off to a good start!

    The excerpt box being there won’t help, if WordPress isn’t being told to display it anywhere

    Hope that helps!

  • Jeff Says:

    I’m wondering if there’s an easy way to tie the excerpt into the wp_list_pages function.

    So I can get the excerpt to display in the list.

    Have you tried this or had any luck?

    • Jeremy Massel Says:

      Jeff,

      the wp_list_pages is a wrapper around the WordPress loop. I would suggest writing a loop query with the same parameters you want for the page list, and using that on your page. then you can simply call the_excerpt(); for the page you want.

      the documentation is here: http://codex.wordpress.org/The_Loop

  • Chris Says:

    I’m trying to use the plugin with parent pages so that the parent page will list subpages and a little about each subpage. Without the plugin, the parent page displays each subpage title and an auto generated excerpt just fine. When I install the plugin, it seems to pull the excerpt from the parent page and not the individual child pages. Here is the code. Any ideas?

    get_results(“SELECT * FROM $wpdb->posts WHERE post_parent = “.$post->ID.” AND post_type = ‘page’ ORDER BY menu_order”, ‘OBJECT’); ?>

    <a href="guid; ?>” rel=”bookmark” title=”post_title; ?>”>post_title; ?>
    the_excerpt();?>

    • Freshmint Says:

      Used this loop to create an unordered list with thumbnail (featured image), title and exceprt for child pages


      $post->ID,
      'post_type' => 'page',
      'post_status' => 'publish'
      );
      $postslist = get_posts($args);
      foreach ($postslist as $post) :
      setup_postdata($post);
      ?>

      <a class="list-thumb bdr-white fltL"href="" rel="bookmark">
      <a href="">


    • Freshmint Says:

      Full code….

      $post->ID,
      ‘post_type’ => ‘page’,
      ‘post_status’ => ‘publish’
      );
      $postslist = get_posts($args);
      foreach ($postslist as $post) :
      setup_postdata($post);
      ?>

      <a class="list-thumb bdr-white fltL"href="” rel=”bookmark”>
      <a href="”>

  • Chris Says:

    sorry, code didn’t go through.

    get_results(“SELECT * FROM $wpdb->posts WHERE post_parent = “.$post->ID.” AND post_type = ‘page’ ORDER BY menu_order”, ‘OBJECT’); ?>

    <a href="guid; ?>” rel=”bookmark” title=”post_title; ?>”>post_title; ?>

  • Chris Says:

    I’m not sure how to add the_excerpt () function with wp_list_pages.

  • karin Says:

    i was wondering if it is possible to show a read more link in the excerpt. I tried:
    <?php the_excerpt('Lees meer »’); ?>
    But doesn’t seem to work… any ideas ?

  • Cale Bergh Says:

    Jeremy:
    1) Thank you for an awesome plugin. Love it!
    2) Thought I might save some others some headache. I’m running WP 3.1, and installed the plugin. Could NOT see the Page Excerpt metabox anywhere, tried EVERYTHING under Screen options, was pulling my hair out. Then, on a wild whim, I went to Add/Edit Post, where under Screen Options you can hide/show the Excerpt metabox. Showed it THERE, and went back to the Add/Edit Page, and voila! The Page Excerpt metabox was visible.

    Thanks again!

  • Markus Freise Says:

    Add this to your functions.php. After that, you can choose „Excerpt“ under „Screen Options“ in the Edit-Panel:

    add_post_type_support(‘page’,'excerpt’);

  • Chris Cernoch Says:

    FYI $after_title .= ‘‘; should change to $after_title = ‘‘.$after_title; for the tags to close propoerly

  • ar Says:

    Hello,
    Using Latest version of Page Excerpt in WP 3.1 and looks like that when I go to Page -> Add new (or modify one) at first time the Excerpt box is hidden: I need to enable it from the top right WP screen options.Then after saved the page, I will get the Excerpt metabox re-hidden as above.using the_excerpt() in the template and add_post_type_support(‘page’,’excerpt’); in functions.php
    Not sure if I had debugged as well.

    • josh Says:

      Same problem. Also running 3.1. I put the code in functions.php, but still no checkbox for Excerpt comes up under Screen Options for me.

  • Pawel Says:

    How i can get page excerpt when im displaying subpages on page?

    ID.”);
    foreach($mypages as $page)
    {
    ?>
    ID); ?>

  • daddy Says:

    great plugin but ican operated this plugin? newby help

  • Eric Brown Says:

    Having some issues getting the excerpt to display properly. I am using a static page for the homepage for a client and had to create the loop. Here is my code:

    About Client

    <a href="”>Read More…

    Any help would be appreciated :) The “Read More…” is displaying. Just not the excerpt. Do I need a page id in there maybe?

  • Eric Brown Says:

    Code didn’t show

    [code]

    About Client

    <a href="">Read More...

    [code]

  • Eric Brown Says:

    One more try (having an idiot moment):

    <!–Start the Loop –>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

    <!–The Three Boxes Below the Buttons –>
    <div id=”bottom-content”>
    <div id=”bottom-content-left”>
    <h2>About Client</h2>
    <p><?php the_excerpt(); ?></p>
    <p><a href=”<?php echo get_permalink(); ?>”>Read More…</a></p>
    </div>
    </div><!–#bottom-content –>

    <?php endwhile; else: ?>
    <p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
    <?php endif; ?>
    <!–End the Loop –>

  • Mike Says:

    The plugin doesnt appear to work with WP 3.2.1 – i’ve installed and activated yet see no area new to add excerpt content. Have cleared my cache, logged out + back in again and checked the “screen options” dropdown menu for clues but nothing helps.

  • Karen Says:

    Hi,
    I love this plugin and have used it for some time. Just recently we upgraded to the latest version of wordpress 3.2.1. However now my ‘editors’ cannot see the excerpt box.. it appears as only admins can. Is there anyway I can change this setting?

    Thanks
    Karen

  • Karen Says:

    Hi,
    I love this plugin and have used it for some time. Just recently we upgraded to the latest version of wordpress 3.2.1. However now my ‘editors’ cannot no longer see the excerpt box.. it appears as only admins can. Is there anyway I can change this setting?
    Thanks
    Karen

  • Kelly Says:

    Can someone please post or publish a short video for “dummies” like me on how to use this? I have several sections on my front page where I’d like to use the More and excerpt functions.
    Thank you so much
    K

  • | europe-service Says:

    [...] Page Excerpt [...]

  • Sérgio Says:

    Hi. Just wanted to know if this plugin is compatible with WP 3.3. Thanks.

  • Noah Says:

    We are using this plugin on our clients site which is WP 3.3.1 and now the “excerpt” Screen Options check box has stopped working. Is anyone having this issue?

Leave a Reply