Thread Starter
aka-ra
(@aka-ra)
Unfortunately that didn’t work either. I tried both the ID and the string you suggested
Thread Starter
aka-ra
(@aka-ra)
Thank you for the link but unfortunately it didn’t work. I’m wondering if it’s to do with the theme overriding the wordpress funtionality?
I added:
function my_home_category( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( ‘cat’, ‘blog’ );
}
}
add_action( ‘pre_get_posts’, ‘my_home_category’ );
I believe that was correct?