[wp-hackers] Double Slug - Custom Post Type

Robert Lusby nanogwp at gmail.com
Fri Mar 11 10:05:41 UTC 2011


Any ideas? Would be much appreciated!

On Thu, Mar 10, 2011 at 7:36 PM, Robert Lusby <nanogwp at gmail.com> wrote:

> 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