I was recently faced with a similar situation and chose to use custom post types. While it’s technically possible to use page hierarchies or categories it would make handling user access too complicated.
If my understanding is correct then your desired permalink structure will be there by default:
PS: if you want to keep the hierarchical structure inside ‘vegetable’ posts, then make sure you set the post type to ‘hierarchical’ (like pages).
Related Posts:
- User capability of create page/new page
- Not allow add New Page for role ‘editor’
- Add role and edit page capabilities
- Check IF is a “single product page” and Check the “role” for a Redirect
- Restrict admin access to certain pages for certain users
- Show different badge based upon the user role
- remove/hide pages from users backend
- List all private pages user has access rights to read
- Role can edit just one page [closed]
- Allow a user to edit their own page and profile only
- Custom page only editable by one user
- One author not showing in Author drop down list while editing page
- Edit and delete permissions pages and posts
- remove “Edit” from select pages
- Every change made by “Author” role is going to “pending review”
- Restrict specific private page to a specific user
- Removing add new pages form editor role
- How to limit the pages shown in the page manager to those created by the logged in user?
- disable trashability for certain pages
- Get the content of a specific page (by ID)
- How to give paged links custom title?
- Show Default Editor on Blog Page ( Administration Panel )
- How can I modify the Capability needed to access a plugin’s options?
- How to enable a site administrator to edit users in a WordPress network/ multisite setup?
- How to get all capabilities of an existing user role
- Create pages automatically if they don’t exist
- How to redirect on particular page in wordpress? [closed]
- Can I display the widget admin in the page admin?
- How to update role capabilities
- Internal Links to Pages in PHP?
- how to add custom user capabilities using add_user_meta or something else?
- Restrict acceess of a page in backend
- Modify theme to get page excerpts on front page
- Debugging shortcode problems
- Custom Role can’t trash Custom Post Type
- The entire content of my WordPress page has disappeared
- How can I restore admin capabilities?
- What is the proper way to get contents of a page?
- What determines whether admin toolbar is shown to a logged-in user?
- Include content from one page to another
- Can I include Javascript/jQuery in a page?
- Pending status by default for a specific role
- Is there a capability for managing plugin options?
- conditional tags- how to use with shortcodes
- How do I restrict user access to plugins?
- How to update the counter of private pages in the dashboard?
- Any Ideas for Including “More Tag” with get_pages($args)?
- Where are $current_user->allcaps set?
- How to make my category archive behave like a page
- How do I Name a WP page in the New(ish) Block Editor?
- Where can i make an html change to a specific page [closed]
- This code won’t find authors page?
- WordPress backend:How to hide some specific pages under Pages–>All Pages
- Different header for each page in child theme of twenty thirteen
- Change a Page’s Header Image
- Dynamic href link to Contact Page
- Hiding custom theme functionality using capabilities
- What Capability is required to let a role RUN code in Edit Theme?
- Restrict the list of parent pages to only those which are created by current user
- Can I Create a Second Admin Level User Role?
- Use content from one page in another template
- The Capability to choose post/page template
- Is it possible to change slugs’ default behaviour?
- List child pages within page template
- append one page content into another
- on page creation few inline style properties gets removed
- Creating a folder structure
- way to make all pages with certain tags public?
- Page not appearing under its Parent
- return page name in url
- Disabled delete_others_posts if post is from admin
- Search anything from a Child and Sub-Pages of their Parent page
- Can i use 2 page content-forum & content-forum-slug on bbpress?
- register_rest_field only for specific page
- Update Pages ONLY from Stage to Live (not products)
- Change page width in refined magazine/mag and news theme
- How to only display all posts to a custom User Role?
- How do you run code on a specific page without missing the init hook?
- if is_page() is not working with wp_redirect
- Display meta data attribute in user profile
- fine-grained capabilities for user related capabilities
- Assign Parent Page – Now 404 Error
- Create multiple custom HTML pages
- WordPress displays widgets out of whack
- Add homepage to the list of pages in the Footer Widget
- WordPress form submit to custom page template does not work
- How do I locate a third party page represented as a slug in my WordPress website?
- Customise the_title in admin area
- Why user profile update creates Additional Capabilities
- Add pagination to search.php page
- How do I get my page “About” to show up on my WordPress site?
- Pulling posts tagged with similar title name
- Filter posts by author selected in page
- Temporary download page or restrict static download page based on how the user got to the page?
- Custom role, capabilities, and post type: preview button wrecks things
- List Parent page with sub pages
- Grant access to admin menu?
- Order pages by date
- wordpress user profile page
- WordPress is picking up links that don’t exist