Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have the following line in a register_post_type function:

'rewrite' => array('slug' => 'Newsletters', 'with_front' => false),

I understand what the line does in general (adds "newsletters" to the slug) but I don't specifically understand what the 'with_front' part does. I have to admit, I don't really have a problem that needs solving, but I'm suddenly curious....

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

From the Codex ...

Should the permastruct be prepended with the front base. (example: if your permalink structure is /blog/, then your links will be: false->/news/, true->/blog/news/). Defaults to true

share|improve this answer
    
Thanks. I can never find anything directly on the Codex, and using web search was getting me nowhere! –  Greg Pettit May 24 '12 at 19:21
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.