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.

1

I think you can set up your category as the home page:

1. Create a page which linking to your category.

2. Set up home page using static page you’ve created at step 1.

Hope this idea may help you

commented on answer

Thanks! I’ll get back to you on this too, I want to test both the solutions, thanks!