Display category question?

6.44K viewsWordPress
0

Is it possible to display only a category in a post/page? (and not all the questions from all the categories?) Some thing like [anspress cat1] or like this?

0

Did you ever get this resolved Benoit_Didier? I’m trying to filter the same thing using REST endpoints but there are no documentation whatsoever.

[anspress question_category="category_slug"]

I’m not sure what’s going on, but when I embedded your shortcode inside a page, it lists ALL categories.

0

yes its already exists, read the doc.

I can’t find the answer. Can you link me the document plz? (I can’t find it on the link on the top of the page)

Ok I guess it’s [anspress question_category="category_slug"]

You have to pass category id instead of slug 🙂

I might be stupid but [anspress question_category="1"] or even the category slug doesnt work for me!

Just use category instead of question_category.