scribu / wp-posts-to-posts

Efficient many-to-many connections between posts, pages, custom post types, users.
http://wordpress.org/plugins/posts-to-posts/
969 stars 260 forks source link

Show custom taxonomies of linked post type #560

Open mueedkh opened 6 years ago

mueedkh commented 6 years ago

I have a a connect post type called cinemas which is connected with movie Post Type. The cinema CPT bears a custom taxonomy called "cinema-city" where we can add cities and district as sub-child. I want to show the connected cinema on a single movie page in a way that the City should show once, then its children "districts" and then all cinema's under those child cats of the city. Here is the rough idea of what I want to achieve;

Any help would be much appreciated.

Regards, M.

bbtodd commented 4 years ago

Late reply but may still be of help to others. I only recently discovered you can query posts based on the taxonomy of the connected post! Which I think would do what you want. https://scribu.net/wordpress/posts-to-posts/

Look for the section on: Revamped connection querying