Use Venues as Taxonomy for Custom Post Type

Home Forums Calendar Products Events Calendar PRO Use Venues as Taxonomy for Custom Post Type

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #886709
    corre
    Participant

    The scenario is this. I have a website which displays an event calendar (tribe’s) and a post gallery through a hand-written portfolio that shows posts with filter options according to custom taxonomies.
    I would like giving users the option to filter gallery posts according to places (the venues) as well. What’s the best way to tackle this please?
    P.S: Code is not a problem

    #887870
    Geoff
    Member

    Hi there, Ran! Thanks for getting in touch. 🙂

    Great question. I do want to note first of all, though, that we are fairly limited in terms of helping out with custom development questions like this one. That said, we’d love to point you in the right direction if we can.

    Venues are registered as custom taxonomies (tribe_venues), so I would imagine you are able to extend them to other post types when registering them. From there, you can use the tribe_get_venues() function to call the list of available venues in your filter.

    Does that make sense? Will that work for you? Please let me know.

    Cheers!
    Geoff

    #888103
    corre
    Participant

    Hi Geoff! I actually thought tribe_venues is a post type and not a taxonomy… so what am I missing?

    #888179
    Geoff
    Member

    Hi there, Ran!

    They’re actually custom taxonomies registered to Events posts, which are the custom post type. 🙂

    You should be able to extend the tribe_venues taxonomy taxonomy to your other custom post types as well. The easiest way might be to use a plugin to build that relationship for you, like this one (not tested).

    Cheers!
    Geoff

    #888213
    corre
    Participant

    Thank you very much 🙂

    #888240
    Geoff
    Member

    My pleasure, Ran! So glad that helps out and thanks for marking the answer.

    I’m going to go ahead and close this thread, but please feel free to hit us up with a new thread if any other questions pop up. We’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Use Venues as Taxonomy for Custom Post Type’ is closed to new replies.