Did you write it exactly like you have above with spaces between the = and the words either-side? If so, try removing those spaces so that it looks like this:
[a-z-listing display="posts" taxonomy="category" terms="benh"]
Also make sure that the benh term exists as a category and that you have posts that you have assigned to that category.
Note that the category taxonomy is not by-default applied to posts of the page post-type, which is the default post-type that the plugin displays. To display posts from the post post-type (wow, many “post”!) you need to add post-type="post":
[a-z-listing display="posts" post-type="post" taxonomy="category" terms="benh"]
Hello. I added post-type="post" and used the syntax: [a-z-listing display="posts" post-type="post" taxonomy="category" terms ="benh"] It worked but it displayed all the posts on my website. I just want to display the posts in my Category “benh”. Can you help me
Hi,
Is that a direct copy and paste? You have a space between terms and the = after. It should be terms="benh" with no space.
I made it very accurate. Because I chose the type of code display when posting a comment, it made a mistake. But here’s the syntax I use on the website:[a-z-listing display="posts" post-type="post" taxonomy="category" terms="benh"] and it shows all the articles on my website in the “benh” category.
Your shortcode looks correct. If you have no articles in the benh category it might be displaying all posts as a fall-back. I’ve seen this before where when a term is empty it shows a list of all posts instead of none.
This “benh” category of mine currently has 100 posts. But it shows all posts from another category 🙁