• Hi!
    I have two custom post types, “collections” and “products”. Each product belongs into a collection. I have a taxonomy for collections, where each product gets assigned which collection it is in and lets me display them along with all other products in that collection via a taxonomy.php file.

    On my taxonomy.php page I now need to figure out a way to get the correct(parent) collection’s information, such as a blurb about that collection, header image, etc. How do I best do this in a dynamic way? How can I set up a relationship where the taxonomy page gets what parent collection is the current one?

    Thank you in advance for any guidance in this!

  • The topic ‘Relationship between two custom post types’ is closed to new replies.