开发者

Giving different Post page for same type based on category or Custom Taxonomy

开发者 https://www.devze.com 2023-01-16 21:36 出处:网络
I\'m having a site which has option to add hotels and restaurants. Both for them has开发者_JAVA技巧 different custom fields which i have added meta boxes with a plugin. But the custom fields of hotel

I'm having a site which has option to add hotels and restaurants. Both for them has开发者_JAVA技巧 different custom fields which i have added meta boxes with a plugin. But the custom fields of hotel are not needed for restuarant and vice versa.

So what I want to achieve is create extra menu on admin panel saying Add Restaurant & Add Hotel. When clicked on Hotel its should only show the custom fields configured for Hotel. I know this can be achieved by custom post types. But i don't want another post type unless i have no options.


Figured out that this is not the right place to ask. Better try codex.

0

精彩评论

暂无评论...
验证码 换一张
取 消