Custom sidebar for custom post type


Currently I have 2 custom post types -> Events and Food. Whenever I’m posting something I use taxonomies to act like categories for them.

The problem I have is: when I’m inside a taxonomy archive it shows my sidebar containing “Search” and “Categories” but I want “Search” to query only posts from that custom post type and “Categories” to show only those taxonomies from my custom post type (not categories).

Is it possible? Can someone give me an advice to start? I’m using a bought theme from TF.

noeyeat 2 years 2020-12-21T09:10:23-05:00 0 Answers 7 views 0

Leave an answer