Title: [Plugin: Posts 2 Posts] Permalink structure for nested posts
Last modified: August 19, 2016

---

# [Plugin: Posts 2 Posts] Permalink structure for nested posts

 *  [tetele](https://wordpress.org/support/users/tetele/)
 * (@tetele)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-permalink-structure-for-nested-posts/)
 * Hey!
 * Suppose I have a website where I use 2 custom post types, towns and zones. Zones
   are related to towns (meaning a zone belongs to a town) and the connection is
   made using the plugin like so.
 * `p2p_register_connection_type( 'zone', 'town', false ) );`
 * Obviously, there will be situations where 2 distinct zones have the same name,
   although they are in separate towns. E.g. chicago/downtown and philadelphia/downtown.
 * Is there a way I can use the plugin or define the custom post types in order 
   to use the same slug for the zones or at least have a nested permalink structure
   containing more than 1 custom post type?
 * Or am I getting a wrong idea about this whole connection concept?
 * Thanks in advance!

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

 *  Plugin Author [scribu](https://wordpress.org/support/users/scribu/)
 * (@scribu)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-permalink-structure-for-nested-posts/#post-1816861)
 * Are you sure you can’t make ‘zone’ into a custom taxonomy for the town post type?
 *  Thread Starter [tetele](https://wordpress.org/support/users/tetele/)
 * (@tetele)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-permalink-structure-for-nested-posts/#post-1816944)
 * Actually, the scenario goes even futher, having events (another custom post type)
   linked to zones (one to one relationship).
 * So, the full hierarchy of taxonomies (not necessarily in the WordPress sense)
   is something like town->zone->event[->something else, optionally]. I thought 
   I could model this using the plugin. In fact, I *can* do that, but the permalink
   structure is giving me a very hard time.
 * Still, your idea of using custom taxonomies is excellent! Both towns and zones
   could just be taxonomies for the event custom post type, which just leaves the
   permalink structure to deal with. I found some useful hints [here](http://stackoverflow.com/questions/3851315/custom-post-type-and-taxonomy-permalink-rewrite-in-wordpress-3-0-1)
   and I’d be very thankful if you could point out any others.
 * Thanks!

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

The topic ‘[Plugin: Posts 2 Posts] Permalink structure for nested posts’ 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/)

## Tags

 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)

 * 2 replies
 * 2 participants
 * Last reply from: [tetele](https://wordpress.org/support/users/tetele/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-permalink-structure-for-nested-posts/#post-1816944)
 * Status: not resolved