Oh, I am sorry.
I meant, it doesn´t work in “Single Post Sidebar”
in_category( ‘2’ ) works, but I would have to list all the categories (inkl. child categories), this is not as elegant as the other conditional tag.
By the way, this is a conditional tag (like described here: https://codex.wordpress.org/Conditional_Tags) and it shows a widget, when a post with the category 2 or one of its child categories is displayed.
The Title is also wrong, I will mark this as solved but create a new forums entry (https://wordpress.org/support/topic/filter-subcategories-does-not-work-in-single-post-sidebar/).
Please feel free, to delete this post at all (if you are capable of doing so).
-
This reply was modified 4 years, 11 months ago by webmark487.
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
@webmark487 Don’t create duplicate topics. I have archived your new one, the topic title is not a problem here and you can always add to this topic as you did.
@jdembowski
it is a problem, because it is wrong – and the first post cannot be edited – I cannot delete posts by myself, even if they are obsolete
so, this post should be deleted (archived), not the new one (https://wordpress.org/support/topic/filter-subcategories-does-not-work-in-single-post-sidebar/)
thx
-
This reply was modified 4 years, 11 months ago by webmark487.