I hope i understand you 🙂
I think the easiet way (in my humble opion) the best way is to use taxomonies like so:
function portfolio_taxomony() {
register_taxonomy( 'portfolio', 'post', array( 'hierarchical' => true, 'label' => 'Web Design', 'query_var' => true, 'rewrite' => true ) );
}
add_action( 'init', 'portfolio_taxomony', 0 );
(Web Design if of course an example)
That way you’ll have a url like this:
http://www.site.com/portfolio/web-design/postname/
To me that looks great from an seo point of view because the url is like a “story” and also, easy to do..
Related Posts:
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- How to modify URL structures in custom post types and taxonomies or terms
- Archive page with multiple taxonomies rewrite
- Taxonomy archives based on Custom Post Type
- Permalink rewrite with custom post type and custom taxonomy
- WP Rewrite Rules – Custom post type & taxonomy
- Remove base slug in CPT & CT, use CT in permalink
- Custom Permalink Tag breaks Pagination
- Custom Permalink for Taxonimie and Custom Post Type
- how to get archive urls with same origin for custom types and terms?
- Permalink Structure CPT With Custom Taxonomy Fails
- Remove url rewrites for registered taxonomies
- Customize Custom Post Type URL
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- Custom Permalinks with CPT and Hierarchical Taxonomies
- How to get list of taxonomy slugs ordered parents>childs?
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- How to rewrite custom taxonomy term archive to use THE SAME SLUG/front as CPT
- WordPress custom permalink and archive link for custom post type
- How to rewrite the post slug of a custom post type post
- Modifying rewrite rules to use /category//
- Remove cpt slug from url and use custom taxonomy instead breaks all other cpt
- How to properly set the rewrite rules for this case?
- Change CPT permalink to use the category
- How to fix 404 on post after prepending Custom Post Type url with Custom Taxonomy Term slug
- Redirect Custom Post Type from Child Taxonomies
- How to build overlapping custom post_type and taxonomy rewrites without conflicts?
- Custom Post Type rewrite url to /category/pagetitle [duplicate]
- page not found for example.com/custom-post-name
- redirect old post type url to new structure url
- Why won’t this rewrite rule work?
- Parent cpt/child custom post type URL permalink relationship
- Custom Taxonomy in Permalink from post type
- Custom rewrite rules for archive page and single post
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- Help with a TV series Rewrite structure
- Change page /2 to /transcript with a Rewrite
- Multiple custom post types using the same taxonomy = URL frustrations
- WordPress returns 404 on custom rewrite rule conflict in parameters
- Permalinks for CPT breaks permalinks to pages
- WordPress Rewrite rule for nested post types
- Category base to url in custom post type/taxonomy
- Is slug “type” reserved and can’t be used in taxonomy rewrite?
- Permalinks when filtering multiple custom post types by single taxonomy
- Add hierarchical taxonomy to permalink for custom post type
- custom taxonomy archive by year
- How to Combine Two Custom Post Types into Single Permalink Structure
- How to rewrite custom post type with custom taxonomy urls?
- How can you handle rewrite rules for custom post types with option to filter on custom taxonomy terms?
- Parent & Child Taxonomy slugs in custom post permalink
- Custom Taxonomy URL are redirecting to page with the same name
- Taxonomy custom post type URL
- How to change custom post type permalink structure
- Front custom edit post page for each post
- Rewrite Question Mark in Post Template to Make it Pretty URL
- How can achieve this permalink perfectly? domain.com/%category%/%post-name%
- Rewrites/query for multiple hierarchical custom post types
- WordPress uses url different from defined in rewrite arg of custom post type
- Including taxonomy term before post type breaks top level pages
- Correct procedure for advanced permalinks
- Rewrite Endpoints and CPTs – How to use in a plugin
- add_rewrite_rule and passing variables for custom post types
- Get url.com/post_type/taxonomy/term work!
- Custom taxonomy and post type with same slug
- Different rewrite rules for taxonomies and cp in multisite?
- How to add custom taxonomy in custom post type permalink?
- Custom URLs in post types make it impossible to view archive
- I can’t access custom taxonomy page listing
- Custom Permalinks for Custom Post Types
- Combine multiple CPT names to create valid permalinks
- SEO Concerns With Rewrite Rules
- Route subpage to Custom Post Type
- Add term slug in URL of custom post type details page
- Custom Post Type Advanced Slug
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- rewriterule not working
- Pagination for custom post types – url rewriting
- Custom Post Type View Button in Admin Gives 400 Error
- rewrite rules hierarchical
- Custom Post Type Date Based Archive URL rewrite [duplicate]
- Rewrite URL for CPT to domain/post-name/post-id
- How to apply multiple rewrite_rule to a single custom post type url?
- Remove custom permalink base from CPT custom category and custom tags
- How to handle this wordpress custom post type rewrite problem?
- Custom permalink structure for custom post types including multiple taxonomy
- CPTs relationship
- Permalinks: custom post type -> custom taxonomy -> custom sub taxonomy -> post
- Pretty Permalinks with CTP and Taxonomies / Hierarchical
- Rewrite url for custom post type with specific url
- Customise Permalink Structure For Custom Post Types
- Two CPT: one is using part of the custom rewrite slug from the other
- Custom taxonomy archive slug overwrites static page
- Group based routing and administration
- WordPress custom post type rewrite rule matches all pages returning 404
- Rewrite Rule & Regex – Extract ‘cat-name’ and ‘page-number’ from http://domain.com/custom-post-type/category/cat-name/page/page-number
- Custom post type and custom taxonomy archive inaccessible
- How to change custom post type slug without damage seo? [closed]
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL