Custom Post Hierarchy

[ad_1]

I’m wracking my brains trying to find out the most logical way to do this, so hopefully someone can help.

I have a menu with 3 categories Foods, Drinks and Promotions. These all have subcategories, so example in foods we have starters, mains, desserts etc. Inside the submenu we have the items themselves (which are the custom post). The idea is to keep it as dynamic as possible, so in the categories I will loop subcategories, in subcategories I will loop items themselves.

My approach- Custom post called menu items. Custom taxonomy called menu categories (foods drinks and promotions here). Then I’ll use the parent-child relationship for the subcategories- so for example parent food and child starters etc. This works because also promotions doesn’t need a subcategory, it just lists the items.

Interested to hear a better approach thanks.

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer