[wp-hackers] Double Slug - Custom Post Type

Robert Lusby nanogwp at gmail.com
Thu Mar 10 19:36:23 UTC 2011


Hello,

I have a Custom Post type, I'd like to sit at:

http://example.com/some-page/custom-post-slug
 http://example.com/some-page/custom-post-slug/a-custom-post-item

E.g. have a "double" slug, on the Custom Post type (So the custom post type
becomes a second level item in the URL, not top level).

'rewrite' => array(
        'slug' => 'custom-post-slug',
        'with_front' => false);

I can't use with_front, as our "front" is /blog/ (for the blog area).

How are people achieving this?

Thanks,
Rob


More information about the wp-hackers mailing list