Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Nesting Custom Post Types

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 59525

Trending Articles