Nesting Custom Post Types
-
Is it possible to either nest custom post types or somehow use the custom rewrite to make them appear as though they are nested?
For example, let’s say we have two post types that have different custom fields and layouts – Food and Recipes.
Is it possible to have the URLs appear like this:
mysite.com/food/recipes/post/
I tried using the custom rewrite slug in the setting for the ‘recipes’ post type to ‘food/recipes’ and the URL appears correctly in the back end but the front end version shows a 404 error so guessing we can’t have a slash in this field?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Nesting Custom Post Types’ is closed to new replies.