Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Show the full content of your first blog post while the others show an excerpt
add_filter( 'generate_more_tag', 'generate_first_post_full' );
function generate_first_post_full()
{
global $wp_query;
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
if( $wp_query->current_post == 0 && ( is_home() || is_archive() ) && 1 == $paged ) {
return 'true';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.