Posts in subcategories should also be displayed directly in the main category

Posted in: Newspaper
Post count: 1

Hello everyone,

I try to present news from my region on my website.
For example, I have a superordinate category “Bavaria” with a few subcategories “Upper Bavaria” and “Lower Bavaria”, which also contain a few cities: Munich, Nuremberg, Augsburg, etc.

For example, I would like to assign a contribution from Munich only to the category “Munich” and not also to the superordinate “Upper Bavaria” and “Bavaria”. Isn’t it possible when I display the Bavaria category that all subcategories and posts are listed?

I don’t know if there is a name for it, I would say that the word “recursive” fits it.

Of course, the solution would be to include the post in all higher-level categories, but I would rather save myself these sources of error.

Thanks very much
Johann Lang

Post count: 27744

Hello,

No, if you have selected the parent category or other subcategory then only posts from that category will be displayed.
A workaround for want you to need is to use the Multiple terms filter and set there the ids of your categories -> https://forum.tagdiv.com/flex-block-settings-guide/ “– This option allows you to filter the posts by multiple categories. The procedure is similar to the one used on Post ID filter. Add the category IDs separated by commas (ex: 13,23,18). If you want to exclude categories, add a ‘-’ symbol in front of each ID. If you want to display posts from a category and remove the posts included in one of its sub-categories, first add the parent category ID (ex. Fashion category – 341) and after it places the sub-category ID (ex. Daily subcategory id: 342) with a ‘-’ symbol in front. If you decide to use the ‘multiple taxonomies filter,’ the standard Category Filter is ignored.”

Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.