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

Travis Northcutt travis at travisnorthcutt.com
Thu Jan 6 13:50:26 UTC 2011


On Thu, Jan 6, 2011 at 6:47 AM, Steve Taylor <steve at sltaylor.co.uk> wrote:

> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>

Steve,

I'd suggest taking a look at John P. Bloch's Custom Post
Permalinks<http://www.johnpbloch.com/plugins/custom-post-permalinks/>plugin.
It may provide what you're looking for.


--
Travis Northcutt


More information about the wp-hackers mailing list