最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Custom sidebar for custom post type

programmeradmin0浏览0评论

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.

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.

Share Improve this question asked Sep 25, 2018 at 19:24 noeyeatnoeyeat 1
Add a comment  | 

1 Answer 1

Reset to default 1

You can create your own custom widget for search and term list and use some plugins that managed visiblity of it like Display Widgets or try look for some complex search plugin, maybe Relevanssi can do what you want

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论