I'd like to request a feature that allows for better control over the permalink rewrite and breadcrumbs for SEO purposes. This would be particularly useful when working with multiple custom post/content types (CPTs/CCTs) that have parent-child relationships.
To illustrate the issue, let's consider the following example:
We intend to create two custom post types - "Courses" and "Lessons". While registering the CPTs is straightforward, we are encountering difficulty in customizing the URL structure for the lessons. Our desired URL format is: http://my-online-course.com/[course-name]/[lesson-name]/
While it is possible to create a parent-child relationship between the CPTs, this relationship is not reflected in the URL and breadcrumbs. As a result, we end up with two separate URL paths:
Using hierarchical CPTs is one solution, but it is not scalable for cases with multiple levels of parent-child relationships (e.g., continent > country > region > city > neighborhood > activities).
It would be incredibly beneficial to have this functionality built-in, allowing for easier management of permalink rewrites and breadcrumbs in custom post/content types with parent-child relationships. Please let me know if you need any further clarification or information.
Hi there,
I'd like to request a feature that allows for better control over the permalink rewrite and breadcrumbs for SEO purposes. This would be particularly useful when working with multiple custom post/content types (CPTs/CCTs) that have parent-child relationships.
To illustrate the issue, let's consider the following example: We intend to create two custom post types - "Courses" and "Lessons". While registering the CPTs is straightforward, we are encountering difficulty in customizing the URL structure for the lessons. Our desired URL format is: http://my-online-course.com/[course-name]/[lesson-name]/
While it is possible to create a parent-child relationship between the CPTs, this relationship is not reflected in the URL and breadcrumbs. As a result, we end up with two separate URL paths:
Using hierarchical CPTs is one solution, but it is not scalable for cases with multiple levels of parent-child relationships (e.g., continent > country > region > city > neighborhood > activities).
I found an article online that demonstrates how to establish a relationship between different CPTs and rewrite the URL using code: https://1fix.io/blog/2016/02/05/parent-from-another-cpt/
It would be incredibly beneficial to have this functionality built-in, allowing for easier management of permalink rewrites and breadcrumbs in custom post/content types with parent-child relationships. Please let me know if you need any further clarification or information.
Thank you for your attention to this request.