Archived topic
Most Recent Post (full) + Excerpts Below?
3 replies · Started by Chris on March 19, 2019
My previous theme on several sites has a setting where it will show the most recent blog post full article on the main site page, along with a configurable number of recent post excerpts below. I have the latest GP Premium plugin and was wondering if it is possible to configure this same setup?
I'm essentially trying to upgrade to GeneratePress, but maintain the same look and feel initially. Thanks!
Hi there,
Have you tried the columns feature?: https://docs.generatepress.com/article/using-columns-in-the-blog/
If you set the columns to 2 and check the "Make the first post featured" checkbox, it will be full width.
Then you can tell the first post to display the full content by using a function like this:
add_filter( 'generate_show_excerpt', function( $show ) {
global $wp_query;
if ( 0 == $wp_query->current_post ) {
return false;
}
return $show;
} );
Let me know :)
Yes, that is exactly what I'm trying to do. Worked like a charm, thanks!
You're welcome :)