I think it is better to connect with taxonomy terms. Since you can add any custom fields to terms using ACF / another plugin / code, it is possible to use terms with images, full description etc.
I had similar task, this tutorial should be helpful https://rudrastyh.com/wordpress/taxonomy-slug-in-post-type-url.html. Yes, I know that there is no hierarchy but I want to show you another principle to implement your task.
Actually to add an hierarchy you just have to reorder terms from this part of the code:
$terms = wp_get_object_terms( $post->ID, $tax_name );
And add them in this part:
$permalink = str_replace( $post_type_slug, $terms[0]->slug . "https://wordpress.stackexchange.com/" . $terms[0]->slug, $permalink );
If you have a specific quetion – ask in comments – here or there as you want. I will try to help you.
Related Posts:
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- Nested custom post types with permalinks
- How to handle a hierarchy with custom post types
- Hierachical Custom post types permalinks not working
- How to check if last uri segment is a custom post type or taxonomy term?
- Custom permalinks – post type – hierarchical taxonomy’s
- Custom Taxonomies: Multiple Hierarchical Permailnks For A Single Post + Prev/Next Links
- Custom post type hierarchical permalinks not behaving as expected for parent/child pages
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- Rewrite Rule for showing Parent/Child Relationship between Two Hierarchical Custom Post Types
- Hierarchical permalinks for custom post type and taxonomy
- Custom post type Permalinks with hierarchical Taxonomies
- Ideas on how to organize a project [closed]
- Permalink with hierarchy of Custom Post Types
- hierarchical Custom post type child permalink not found
- How can I add a “fake” parent into the permalink?
- taxonomy term names in custom post type permalink structure
- Cross post type parent page added parent page to permalink but give 404
- How to have a hierarchy of custom post types and use two of them in the permalink?
- How to organize hierarchical structure in custom post type with taxonomy (like with categories)
- Make custom post types and pages place nice, re: rewrite
- Custom Post Fields at the beginning of a Custom Permalink
- Flush Rewrite Rules when new site is created on network
- Pretty URLs and custom post types
- Form action doesn’t work if slug isn’t same as custom post title
- using wp_update_post for updating custom post type
- How to make permalink structure %category%/%postname%/ work for custom post type?
- set permalink for CPT
- Ignoring slug capitalization on rewrite rule for custom post type archive page
- Lost of query parameter when using permalink
- Custom permalinks rules don’t match and lost of query var in the process
- Custom Post Type – Duplicate Page Slugs
- Rewrite rule for Custom post type Monthly and Yearly archive
- Different results between permalink and query var search
- menu link to custom post_type?
- Custom permalink with child taxonomy terms
- 404 in custom post type feed with mistake permalink
- Create a permalink structure with custom taxonomies and custom post types gives 404
- Add a permalink variable onto custom post type URL after post name slug
- Remove permalink for custom post type
- Permalink misbehaving in Custom Post Types
- Check post on publish for blank title
- How to solve this custom post type goes to 404 page?
- Best way to specify “article type” in URL
- Template files for Custom Post Type and Taxonomy
- How to Create Template File for Parent Page of Custom Post Type
- How do you create %post_type%/%postname%/ permalink structure?
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Changed permalink structure of CPT – should I redirect?
- How to query 2 custom post types that need to share a slug?
- Custom Post type & Taxonomy 404
- I’m having trouble getting the permalink sample on my custom post type edit page to work
- How to change path for default WordPress blog posts?
- How to hyperlink content from archive page with custom post-type
- Can’t use pagination with custom taxonomy
- Is it safe to change a Custom Post Type from “hierarchical:false” to “hierarchical:true”?
- retrieve permalinks of posts inside custom post type by using post ID
- Custom Permalinks with meta value not working. Why?
- Custom post type as child of page
- Remove custom permalink structure from custom post type without modifying register_post_type() directly
- How to have permalink like domain.com/term/postname?
- Can variables be used to rewrite a Custom Post Type permalink? [duplicate]
- get parent content inside child posts
- page template for custom post type
- make permalink go to a custom single.php file
- Custom post type permalink sends to 404.php
- Post will not load via ajax
- Template for custom post type when taxonomy is in the URL
- One Custom post type 404’s others don’t
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- How to change base in tag URL for custom post type, to not use “Custom Structure” set in Permalinks setting?
- Combine multiple CPT names to create valid permalinks
- Permalink problems with custom post type and custom taxonomy
- How to implement a different permalink structure for custom post type?
- How to add a sub directory to WordPress single posts without affecting other post types?
- Set parent for custom post type archive rewrite url
- How to rewrite the beginning and end of the permalink structure in a custom post type?
- Route subpage to Custom Post Type
- Custom Post Type “MUST NOT” be able to search via URL
- Custom post type permalink returns 404 when set to private
- Post URL based on Custom Post Types variables
- Custom Post Type Advanced Slug
- Templates for hierarchical custom post type
- Dynamic CPT permalink structure based on ACF field value
- custom hierarchical taxonomy and custom post type list contains surplus posts
- Custom post type slug 404
- Custom permalink not working and showing 404 page not error
- Custom Post Type permalink without /%day%/ and/or /%postname%/
- Creating a non-hierarchical Taxonomy that behaves like categories
- How to filter a custom post type by custom taxonomy without 404
- How to query for posts (hierarchical custom post type) that have children but are NOT top level?
- How to get all posts related to particular category name on button click?
- Migrating Hierarchal Taxonomy Categories Between Post Types
- how to retain the ability to modify the post slug after applying a post_type_link filter?
- Rewrite permalink for multiple post types (CPT) with taxonomy term
- Post type Permalink
- get the permalink never return with empty value