Can I Make The Blog Page 1st Post An Excerpt?

Community Forums Forums General Discussion Can I Make The Blog Page 1st Post An Excerpt?

This topic is: not resolved

Tagged: 

This topic contains 6 replies, has 2 voices, and was last updated by  AC 1 year ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #68898

    KenTheriot
    Participant
    Post count: 88

    I would like the first blog post on my blog page to show up as an excerpt. I found a post in this forum with some code that allowed the search results to show up as excerpts. But for some reason, I can’t figure out how to make the first post show as an excerpt too.

    BTW, I am not using a static front page for this site – http://www.ravenboymusic.com/

    Is there a quick way to do this? Thanks.

    Ken

    http://www.ravenboymusic.com/
    #68901

    AC
    Blocked
    Post count: 7712

    You can set the content limit in the home.php file. Look for this:

    [php] if ( function_exists( ‘genesis_grid_loop’ ) ) {
    genesis_grid_loop( array(
    ‘features’ => 1,
    ‘feature_image_size’ => 0,
    ‘feature_image_class’ => ‘alignleft post-image’,
    ‘feature_content_limit’ => 0,
    ‘grid_image_size’ => ‘grid-featured’,
    ‘grid_image_class’ => ‘grid-featured’,
    ‘grid_content_limit’ => 250,
    ‘more’ => __( ‘[Continue reading]‘, ‘eleven40′ ),
    [/php]

    Change the 0 in the featured_content_limit to what you want.

    #68965

    KenTheriot
    Participant
    Post count: 88

    Thanks Anitac. I changed it to a 1 and then all I get is the headline of the first post. And it seems like that is the case no matter what non-zero number I put in there. Is there no way to make it be the picture and the first hundred words of the post or something like that?

    Your answer did help a lot though! As a “next-best-thing” I’ve set the number of features to 0, which is closer to what I want than what I had.

    The main problem was that if the entire post was visible on the blog page, there was no reason for folks to click through to the article.

    Thanks.

    Ken

    • This reply was modified 1 year ago by  KenTheriot.
    • This reply was modified 1 year ago by  KenTheriot.
    #68966

    AC
    Blocked
    Post count: 7712

    Oh, no… you need to change it to the number of characters – like 250, or 300.

    #68967

    AC
    Blocked
    Post count: 7712

    See your grid_content_limit is set to 250 characters. So you can change the feature to 100, 200, 250.. or whatever you want.

    #69100

    KenTheriot
    Participant
    Post count: 88

    Perfect. Thanks!

    Ken

    #69103

    AC
    Blocked
    Post count: 7712

    You’re welcome.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.