One full post followed by excerpts on the home page

Community Forums Forums Design Tips and Tricks One full post followed by excerpts on the home page

This topic is: resolved

This topic contains 3 replies, has 2 voices, and was last updated by  xosarah 11 months, 1 week ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #73751

    xosarah
    Member
    Post count: 7

    Hello! I’ve created a child theme and am stuck on displaying one full post followed by excerpts on the home page.

    http://xosarah.com/test2/

    I’ve tried the Grid Loop plugin with this code http://www.billerickson.net/code/full-content-features-in-grid-loop/, which still displayed the shortened feature on the homepage.

    Now I’m using this…

    //* Add support for Genesis Grid Loop
    remove_action( ‘genesis_loop’, ‘genesis_do_loop’ );
    add_action( ‘genesis_loop’, ‘child_grid_loop_helper’ );
    function child_grid_loop_helper() {
    if ( function_exists( ‘genesis_grid_loop’ ) ) {
    genesis_grid_loop( array(
    ‘features’ => 1,
    ‘feature_image_size’ => 0,
    ‘feature_image_class’ => ‘post-image’,
    ‘feature_content_limit’ => 0,
    ‘grid_image_size’ => ‘thumbnail’,
    ‘grid_image_class’ => ‘alignleft post-image’,
    ‘grid_content_limit’ => 540,
    ‘more’ => __( ‘READ MORE >>>’, ‘genesis’ ),
    ) );
    } else {
    genesis_standard_loop();
    }
    }

    Which is working perfectly on the homepage, but is displaying the same thing on archive pages instead of just excerpts. http://xosarah.com/test2/category/design/

    Is there a way to target this for just the homepage?

    Just learning Genesis, so forgive me if I’m missing something super simple.

    • This topic was modified 11 months, 1 week ago by  xosarah.
    • This topic was modified 11 months, 1 week ago by  xosarah.
    #73775

    cdils
    Participant
    Post count: 421

    You might try Bill Erickson’s Grid Loop plugin. And make the Featured post full content and other posts a content limit.

    Easier than hand-coding. :)

    Carrie


    Have you been helped in this forum? Pay it forward and answer someone else’s question. I bet you’ll know the answer to at least one question. :)

    I host a weekly Genesis-focused podcast called Genesis Office Hours. I tweet @cdils.

    #73781

    xosarah
    Member
    Post count: 7

    I tried the plugin. Is there a way to make the featured post display full within the plugin/theme settings? The only way I found was with that piece of code, which didn’t work.

    #73839

    xosarah
    Member
    Post count: 7
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.