[wp-hackers] Custom post type, rewrite and permalink structure

Brent Shepherd thenbrent at gmail.com
Tue Aug 3 06:56:13 UTC 2010

The register post type function accepts a rewrite argument:

As far as I know, setting 'with_front' in that rewrite array to false will
avoid prepending '/blog' to your urls.

On Tue, Aug 3, 2010 at 4:18 PM, Lox <lox.dev at knc.nc> wrote:

> Hello,
> Here is my permalink structure: /blog/%category%/%postname%/
> I created a custom post_type called "Jobs". So wordpress, by itself,
> makes the "jobs" posts stand here: /blog/jobs whereas I want them to
> stand in /jobs. So, I set the post_type's rewrite arg to "jobs" but WP
> still appends the permalink structure. How can I avoid that ?
> Regards.
> --
> Lox
> lox.dev at knc.nc
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list