Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show custom taxonomies of linked post type #560

Open
mueedkh opened this issue Mar 2, 2018 · 1 comment
Open

Show custom taxonomies of linked post type #560

mueedkh opened this issue Mar 2, 2018 · 1 comment

Comments

@mueedkh
Copy link

mueedkh commented Mar 2, 2018

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
Copy link

bbtodd commented Nov 23, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants