Post category provider / consumer not working

Hi there.

Please have a look at the blog page. You’ll see that the listing of category by post (on the blog page) lists all post categories (excluding the empty ones) where I would expect it to list only the categories of the particular (single) post.

I’ve set it up using “all terms” in the provider, then selecting "categories and excluding one category. The consumer. The reason for not using current post terms in the provider is that this configuration doesn’t give me the option to exclude a category.

What’s wrong? Thanks.

Hello @nblund,

Thanks for writing to us.

I checked your layout settings. It seems that you have displayed the category multiple times. When you list all the categories, you can set the Looper provider to All terms and exclude the empty categories.

Now, when you display the post category under the post, you need to set the Looper Provider as Current post terms, since it will only display those categories that are associated with the current posts. If the category is not attached to the post, it will not display.


Hope it helps
Thanks

Thanks @prakash_s. I want to hide the “all categories” category under the post, while maintaining all active post categories (including “all categories”) in the category menu on top of the posts.

When display the post category under the post while setting the Looper Provider as Current post terms, there is no option to hide the “all categories” category.

How can I achieve that? Thanks.

Hello @nblund,

I would suggest you please set the condition like this {{dc:term:id}} != 1. Please have a look at the given screenshot below.


I have added one as category ID since the “All categories” ID is 1.

Hope it helps
Thanks