One category on home page

Solved5.12K viewsCore
0

Hello,

I just have a quick question, I couldn’t find the option for it so I was wondering if it is possible to maybe only display questions of ONE category on the home page? Instead of questions from multiple categories? Thanks for the help!

selected answer
0

Yeps its possible.

Update to 3.0 from GitHub and then add this code in home.php template:

<?php echo do_shortcode('[anspress categories="category_ID"]'); ?>

And its done.

selected as best answer

I will attempt this method and get back to you if this works! Thanks!

Quick question, when you reference category_ID where can I find the “ID”? Thanks.

You can use category slug too. You find category ID and slug in question category edit page.

You are viewing 1 out of 2 answers, click here to view all answers.