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

metabox - Multiple category filters

programmeradmin2浏览0评论

I'm working on an events plugin for a client and I need several 'categories filters'. Now I have arguments for a post type, I've registered that post type and taxonomy, and I created another taxonomy. In my category metabox I only have the first taxonomy displayed as a category that I can choose from. If I create another post type on my menus it will be shown like a different plugin menu with submenus where my post type is, and I only want to have a different 'category filter' that I can add categories to, and then for those to be displayed as a category metabox in the same plugin.

So for now I have a post type and taxonomy for 'Place', that shows in my plugin in a place where a category metabox usually is. And in my plugin submenu I can go to Place and add several 'categories' (places). I also have 'Area of work' taxonomy, and I'd like to have another metabox that looks like the category metabox (in the same page) where I'll also be able to add different areas, and then check them accordingly, along with my 'Place' category.

Is that possible? How to add a submenu where I'll be able to add my second categories, and then have them displayed in the same page?

I'm working on an events plugin for a client and I need several 'categories filters'. Now I have arguments for a post type, I've registered that post type and taxonomy, and I created another taxonomy. In my category metabox I only have the first taxonomy displayed as a category that I can choose from. If I create another post type on my menus it will be shown like a different plugin menu with submenus where my post type is, and I only want to have a different 'category filter' that I can add categories to, and then for those to be displayed as a category metabox in the same plugin.

So for now I have a post type and taxonomy for 'Place', that shows in my plugin in a place where a category metabox usually is. And in my plugin submenu I can go to Place and add several 'categories' (places). I also have 'Area of work' taxonomy, and I'd like to have another metabox that looks like the category metabox (in the same page) where I'll also be able to add different areas, and then check them accordingly, along with my 'Place' category.

Is that possible? How to add a submenu where I'll be able to add my second categories, and then have them displayed in the same page?

Share Improve this question asked Feb 2, 2015 at 9:07 dingo_ddingo_d 1,9602 gold badges25 silver badges49 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Found it out!

I needed to put the registered taxonomy to the same post type in the registered_taxonomy() function.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论