New Landing How can we help? Themeforest Theme Support Flexform Portfolio Permalinks Reply To: Portfolio Permalinks

#2091
bn86
Member
Post count: 44

I would also like to achieve what @mancel is asking for. i.e:

for portfolio pages:
url.com/work/”portfolio category”/slug
for blog posts:
url.com/blog/category/postname

 


@cosmin
There are two places in that file that say ‘rewrite’ => false

When I replace both instances with ‘rewrite’ => array( ‘slug’ => ‘work’ ),  the /work page shows up as an archive, as expected, and so does each portfolio category. However, the portfolio single page is a 404

When I replace only the first instance with your code, only the portfolio category archive works as expected, but the portfolio single shows up as ?portfolio= in the URL and the main portfolio archive shows up as ?post_type=portfolio

When I replace only the second instance with your code, the category archive and the main archive work as expected, but the portfolio single page is a 404

I hope that helps? Is there a way to make this work as a normal custom post type, i.e. without the ?= stuff?

Many thanks