Hi, I kindly ask you this request, I hope you can help me.
That a post block includes posts from 2 categories, for example: “X”, and “Y”; and that excludes posts from the category: “A”. So when a post has categories “X” and “Y” it is displayed, while when a post has categories “X”, “Y” and “A”, it is not displayed. This function serves me to exclude previously published posts that I do not want on a page (as if I moved that post to the archive, so as not to display it in categories or pages). Keeping the categories important to the post breadcrumb, i.e. (in this case): X and Y.
Thanks.
Hello!
You can add an element with TagDiv Composer plugin called “Flex block” and you can filter the posts by writing there the ID of the category which you want to include and you can write -ID for the one you want to exclude.
Please check this screenshot: https://www.screencast.com/t/UbXegeIBXEg
Hope that helps you!
Thank you!
Thanks Bettina.
So with – the categories are excluded. And if I want to create a post block with category X and Y, and I want to exclude posts with Z tags, what can I do?
I tried to set -Z but it doesn’t work.
Hi, I use this thread which seems inherent to me.
It is possible to have a “post block” that displays only if the post has two specific categories and to exclude posts of a specific category.
For example:
The post “A” has the category “cat2”.
The post “X” has the category “cat1” and “cat2”.
The post “Z” has the category “cat1” and “cat4”.
The post “Y” has the category “cat1” and “cat3”.
Is it possible on a page to have the first post block that only displays post “X”? And (just below) a post block that displays post “A”.
Therefore, the first post block must have the category “cat1” and “cat2”, but it must exclude the categories “cat4” and cat3 “, the second post block must have only the” cat2 “.
I need to manage the “featured” posts on the various pages of my site.
And I would like to avoid posts with the “featured” category from appearing on all pages, because on all pages I will create a post block at the top with the “featured” (most important) posts.
Thanks for support
It would have been functional to have a post block with only posts from two categories.
Thanks anyway.