Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #17348

    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,



    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') ) ;


    $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,




    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,


Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘How do I change the blog page to only display posts from one category?’ is closed to new replies.