[wp-hackers] custom post types at lower nav levels

Steve Taylor steve at sltaylor.co.uk
Thu Jan 6 12:47:43 UTC 2011


Hi,

Is it possible to "position" custom post type permalinks lower than
the 2nd directory level?

For example, I have a "film" custom post type. The standard thing
would be to set the slug via register_post_type to something like
"films" for permalinks like this:

/films/film-title/

However, a site I'm working on has the films listing page here:

/media-resources/films/

So we want permalinks like this:

/media-resources/films/film-title/

I've tried "media-resources/films" as the slug value in the
register_post_type rewrite arg, but the URL (which is generated fine
by post_permalink) returns a 404.

thanks,

Steve


More information about the wp-hackers mailing list