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.

Right now I have pages like "about", "resources", etc and the urls are /about and /resources with a custom permalink structure as /%postname%. For "news" section it's the posts and it's at /news and that's great. The problem is I want the new stories to be /news/the-name-of-the-story not /the-name-of-the-story. Can that be accomplished in the wp admin area? Or is that a custom .htaccess trick? Also, news is in categories and /category/category-name lists the posts in that category and the story for those should be at /category/category-name/the-name-of-the-story. Is this even possible?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

The custom permalink field on the settings->permalink screen only applies to Posts. Not to Pages.

WordPress Pages always live at the "top" of the URL tree. /about /whatever /etc. Posts live wherever the custom permalink string defines them to be.

So, in your case, your permalinks custom structure would be "/news/%postname%/" and would not affect your Pages permalinks of "/about" and "/resources".

For instance, to put all Posts under the sub-directory "/blog", your permalinks custom structure would be "/blog/%postname%/".

share|improve this answer
    
Turns out MAJOR modifications were made to posts.php and index.php and that's why none of the changes I tried were working. This reaffirms how it's supposed to work! –  tooshel Jul 15 '11 at 14:40
    
I created a new site using DesktopServer, created a page and checked. It wasn't using /about, but rather /?id=2143. If I changed the permalink setting to Post Name, then it was /about. The structure affects both, it is just that pages have no category and hence this part isn't included –  Casebash Aug 28 '12 at 2:57
    
A non-default case turns on "pretty" permalinks, true, but it doesn't change the way the links work for anything but Posts. Pages always live at the top hierarchy. –  Otto Aug 28 '12 at 15:47

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.