permalink, how to separate posts from pages.
-
i would like all posts to appear in site.com/portfolio/
and pages to appear where-ever. so i can’t put the entire wordpress in a /portfolio/ directory…I want:
site.com/portfolio/
site.com/portfolio/categoryname/
site.com/portfolio/post_id
site.com/page_slugI tried a few things in Edit Permalink Structure
Case 1:
Structure: /%post_id%/
Category base: /portfolio/… This leaves individual entries to ‘appear’ outside , as in:
site.com/portfolio/categoryname/
site.com/post_id –> BUT… i need site.com/portfolio/post_idCase 2:
Structure: /portfolio/%post_id%/
Category base: (blank)site.com/portfolio/post_id is OK but this nests like this: site.com/portfolio/category/categoryname –> but I want to remove the word ‘category’
Case 3:
conversly, i’ve tried to add portfolio in both places,
Structure: /portfolio/%post_id%/
Category base: /portfolio/This gives:
site.com/portfolio/post_id — > OK
site.com/portfolio/portfolio/categoryname –> nests the word ‘portfolio’
site.com/portfolio/post_id is OK but this nests like this: site.com/portfolio/portfolio/categoryCase 4:
I’ve tried hacking the classes.php file to have the word ‘portfolio/ instead of category/ but this does not work for individual entries…Any ideas on how to skin this cat?
- The topic ‘permalink, how to separate posts from pages.’ is closed to new replies.