Leo, it worked this time!! Only one thing left to do is that I need to make it work with this other piece of code.
add_action( ‘pre_get_posts’, function( $query ) {
if ( is_admin() || ! $query->is_main_query() ) {
return;
}
if ( is_category(‘your-category-slug’) ) {
$query->set( ‘posts_per_page’, 15 );
}
if ( is_home() ) {
$query->set( ‘posts_per_page’, 15 );
}
} );
I think I may have messed up the syntax with this one too. My hope is that the home page will still only show secret category, and since I only have 6 posts in that category it should only show 6 posts.. then, I would like all the other category pages to show 15 per page.
Thank you very much leo, you and the team are amazing.
C