The screenshot looks like a menu, here is how I would do it:
Custom Taxonomy
Add a new taxonomy for your products e.g. ‘Product Type’ ‘Product Section’ or ‘Product Category’. It’s tempting to assign post categories to that post type but it comes with other issues if you do that, so don’t.
You’ll want to use register_taxonomy
, and to list the terms, you’ll want to look at functions such as get_terms
to retrieve the top level terms that dont have parents, then repeat for the next level down
Related Posts:
- How to show all posts of the category in wordpress?
- Get category id from post id of a custom post type
- How to show related posts by category or custom post type?
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Custom Taxonomy – Tags Metabox is showing instead of Categories
- How to get the post type from a category id?
- Getting posts under the custom post type ui category
- Show custom post type filtered by category
- Showing posts from different categories and from custom post type
- Add custom post type settings to wordress default posts
- Problem with displaying posts in the CPT category
- Set a checkmark in a category based on a URL-parameter
- Get the category from custom post type
- Custom Post Slug same as Parents Category Slug
- How can I show 1 featured post in a styled element, and the next few below differently styled
- WP the_posts() on single-cars.php get category link
- Create new custom post and post category of same name
- Custom post types and ‘new WP_Query’
- How to Display Posts From Category Within a Custom Taxonomy?
- Showing custom post type categories in the menu
- Stores category posts in an array
- Restrict category access to specific users/groups. Author always has access
- Post Query not working
- Use post in multiple places on a page with multiple posts
- Am I mixing up the concept of posts pages and categories?
- Display all Categories except ones with a specific parent
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- Post category behave like a Post in back office menu
- Save data is post using php front end
- How to show posts of the same category on a page?
- How to manage a dynamic multi-level page hierearchy system?
- Custom Post By Category
- Change Custom Post Type to Post + Category
- Only show current category post
- Post Editor: display categories from current post type taxonomy only?
- Custom Post Type used for FAQs Accordion
- Display all post types together
- show only one category posts in admin
- Can WordPress show posts based on a button that the user clicked 2 pages back?
- Limit widget to a specific registered sidebar
- WP_List_Table Inside Metabox Not Working on Submit
- Why get_next_post_link() or get_previous_post_link() doesn’t return the required links?
- Add metabox with media uploader in a custom post type [duplicate]
- automatically create taxonomy with same name as post title
- Wp-query causing problems with the_content();
- Add extra parameters after permalink?
- Change / Delete the default post type and category?
- Is there a way to list posts of only a certain category
- Query Custom Post Types & category_name?
- How do I get the child category posts from a custom post type?
- WP_Query is printing out only one post when posts_per_page is set to multiple
- Return array of categories to php function for current post
- How to get all posts except for one post from a certain custom post type?
- Exclude child pages from archive.php
- Pagination is not working on single-{slug}.php but works fine on page-{slug}.php
- Using The REST API How To Pull All Custom Posts?
- List children on child post
- wp_list_categories() – current-cat class also inside posts?
- Post injections into Site Origins Page builder [closed]
- Set up post page like JAMA articles
- Allow users to create posts without logging in?
- List Taxonomies: Don’t list taxonomy if it has no post – depending on custom post-meta?
- Categorise Custom Post Types
- in_category for custom post types
- Help With Warning on creating new Post types?
- Including link to custom post type in ‘wp_list_pages’ function
- WP_Query Custom Post Type if Category ID Equals
- Listing all slugs?
- I can no longer post or even save a draft, getting the error “A post type mismatch has been detected.”
- List categories, subcategories and posts from custom taxonomy and custom post type
- displaying content of custom post type
- How to query Posts from a custom post type which contains a custom taxonomy?
- How set template for “custom post type” individual post
- Displaying taxonomies as category links within sidebar and creating pages for these
- A sports wordpress website
- Settings -> Reading -> Posts Page ->Blog — is not working in my website
- Is it possible to get the specific content on the search page?
- How to create additional rendering for custom post types?
- SELECT custom post type and its meta in SQL
- Sudden 404 pages on product category archives
- How do I insert a custom post type query after a certain number of recent posts and then resume recent posts?
- How can I display a specific category on Front-Page
- How to seperate posts by categories?
- WooCommerce change
- Assign for all post of a post type a specific single-post template
- Widget area for individual posts (custom post type)?
- Custom Post Type is not respecting assigned categories
- Help with Travel Guide Setup
- update a posts of other custom post type
- Project Category Heading
- Getting Custom post category from Form
- How can I generate a list of post-type specific categories?
- Front end page submission form does not attach custom post type
- Category slug not showing for Custom Post Type
- Get a list of categories ids
- How to Associate Posts with Pages
- Styling first post using Advanced Custom Fields
- What Is My Fault With This WP_QUERY ? [ Pagination Problem ]
- Storing every individual update to the posts being updated over time?
- Change post structure