Can Anspress Handle Nested Categories on the Main Page?

4.66K viewsGeneral
1

Hi There,

I know anspress has category support, it’s awesome and I use it! But I was wondering if we could display nested categories on the main anspress page, instead of all of the latest questions.

I.e. If you had a sports site, your main answers page could read:

Football

Hockey

Basbeball

Etc, etc, with questions listed for each category within.

 

Can we do this!?

 

Thanks.

Ajax to reveal sub categories on the main category page would be cool.

1

Yes it can be done. If you use 2.4 then you can simply add this shortcode to your static homepage:

[anspress page="categories"]

Then you can copy categories.php to your theme folder anspress/categories.php then edit it to show sub category as well.

I think I follow you. If I do this, what happens when I make updates. Would I have to rectify this change every time? Would be a bit of a bummer if so.

If so, two possible feature requests! The ability to use cover images without having to update, and the ability to do this! That would be awesome 😉

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