Title: Change Permalinks Structure
Last modified: August 21, 2016

---

# Change Permalinks Structure

 *  [fantara](https://wordpress.org/support/users/fantara/)
 * (@fantara)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/change-permalinks-structure/)
 * Hello!
    Is it possible to change the child permalink structure in order to show
   its connected parent in the path?
 * For example:
 * I have Post Type “Courses”, and Post Type “Modules”… I connect both, and then
   go to each Module, and connect: Module 1, Module 2, Module 3… with “Course 1″…
 * Then, the permalink should be: [site-url]/course-1/module-1, and [site-url]/course-
   1/module-2, [site-url]/course-1/module-3
 * If it’s not possible, you have any idea of how can I achieve this?
 * It would be perfect to have a tag permalink structure like %connected-post% or
   so.
 * Thanks!!
 * [https://wordpress.org/plugins/posts-to-posts/](https://wordpress.org/plugins/posts-to-posts/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Elías](https://wordpress.org/support/users/eliasgdj/)
 * (@eliasgdj)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/change-permalinks-structure/#post-5060528)
 * Maybe you can use a `Taxonomy` for the courses instead of a CPT? It’s not likely
   but possible :p
 *  Thread Starter [fantara](https://wordpress.org/support/users/fantara/)
 * (@fantara)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/change-permalinks-structure/#post-5060529)
 * Thanks EliasNS, that’s the workaround that I’m using now, and though it works,
   the client has to select one more thing when editing. I mean that’s not a big
   deal, but it’s not as natural as it should be 🙂
 *  [clariner](https://wordpress.org/support/users/clariner/)
 * (@clariner)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/change-permalinks-structure/#post-5060532)
 * What your wanting is possible, you need to hook into one of the permalink hooks
   and have some URL rewrite rules.
 * If you are still needing this I can post a code sample if you want?
 *  [pederan](https://wordpress.org/support/users/pederan/)
 * (@pederan)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/change-permalinks-structure/#post-5060558)
 * I have the same question: 2 CPT – brands and products. I would like to connect
   products to brands, and get the url structure domain.com/brand/mybrand/products/
   product1. Can you please post a code example for the hook? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Change Permalinks Structure’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/posts-to-posts_7a8e9d.svg)
 * [Posts 2 Posts](https://wordpress.org/plugins/posts-to-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/posts-to-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/posts-to-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/posts-to-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/posts-to-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/posts-to-posts/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [pederan](https://wordpress.org/support/users/pederan/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/change-permalinks-structure/#post-5060558)
 * Status: not resolved