show only one category in the latest blogs, news and updates section


How to show only one category in the latest blogs, news and updates section.

Now all post category's are posted, is it possible to limit this to one specific categegroy ?

Not all new posts need to be shown on frontpage.

Could you give me a hand.

Kind regards,




  • Hi

    Thanks for asking query to us .
    Your query is a part of feature enhancement. However, you can get the result via manually code customization in a file.
    To show specific category post in recent news section . Follow the given below instruction . 
    1 Copy the index-blog.php file located in your theme folder  and past it inside the child theme directory .
    2 Ignore the above step if you already  added the file in child theme directory .
    3 open this file and find the below line of code on line no 30 . 

    $args = array( 'post_type' => 'post','posts_per_page' =>2,'post__not_in'=>get_option("sticky_posts")); 

    And replace it with below line of code .

    $args = array( 'post_type' => 'post','posts_per_page' => 2,'post__not_in'=>get_option("sticky_posts"), 'cat' => '28') ; 

    Cat 28  is the category id from which would you want to show post on recent news section .
    Here, '28' is the category ID which we want to show.
    You have to manually put the ID of the category which you want to show.

    Use Reveal IDs plugin to view category ID in Categories section.More help see the snapshot .

    Let me know did it work.

  • Hello
    Did the above solution work for you ?

  • Hi Akhilesh, 

    it worked fine, thans for your time,


  • Glad to help you!
    You can rate us with your kind review if you like our Theme & Support HERE
This discussion has been closed.