I only want to display posts from a specific category on the blog page. How do I modify the blog page to do that?
Thanks in advance,
Lily
I only want to display posts from a specific category on the blog page. How do I modify the blog page to do that?
Thanks in advance,
Lily
Open up angular/template-blog.php and replace following line:
$avia_config['new_query'] = array( "paged" => get_query_var( 'paged' ), "posts_per_page"=>get_option('posts_per_page') ) ;
with:
$avia_config['new_query'] = array( "category__in" => array( 2,6 ), "paged" => get_query_var( 'paged' ), "posts_per_page"=>get_option('posts_per_page') ) ;
and instead of 2,6 insert your category id(s). You need to seperate them with a comma (,).
Hi Dude,
Thanks for your reply. How do I also modify the query to excluded specific categories?
Thanks again,
-LL
Hi!
You can replace "category__in" with other query parameters. Nearly all parameters are listed here: http://codex.wordpress.org/Class_Reference/WP_Query#Category_Parameters
Best regards,
Peter
You must log in to post.