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 want all my posts to have /ARTICLES/%post-name% structure.

But as soon as I modify the custom structure to that, for a reason that beats me, wordpress adds the articles prefix across the board.

So I end up with urls like this for my category pages with something like the following

mysite.com/articles/category/videos

here the videos is a category and since I did not change the category to anything else, I was expecting the urls to be well, mysite.com/category/videos ), not mysite.com/articles/category/whatever Obviously, such a URL does not make sense.

On the permalinks screen, under the Common Settings's Post name option, I get a grayed out ( uneditable ) sample link that shows something like mysite.com/sample-post.

I wished I could have edit that grayed out info

to mysite.com/articles/sample-post while keeping the other options as is.

But this does not seem to be possible.

Am I at a dead-end here?

Is there a way to only change the post urls without effecting the other urls?

share|improve this question
1  
I think I had the same question a while ago: wordpress.stackexchange.com/questions/13411/… –  Ryan May 17 '12 at 17:53
    
That only takes care of the CPT urls. My problem is on category pages's URL. –  Average Joe May 17 '12 at 20:08

2 Answers 2

Wordpress puts "/category/" by default as the category base in the permalinks even for a category page.

You have to change your custom permalink structure to:

/%category%/%postname%/

Put "articles" in the category base field and your permalinks for example at category page "Videos" will display in this form:

mysite.com/articles/videos

It won't work with post's permalinks thought as "articles" parts will be omitted from the permalink like this:

mysite.com/videos/postname
share|improve this answer

The WordPress SEO Plugin by Yoast has a section called permalinks where you can strip the category base (usually /category/) from the category URL.

share|improve this answer

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.