Can I connect venues to organizers like they are to events?

Home Forums Welcome! Pre-Sales Questions Can I connect venues to organizers like they are to events?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1192717
    Emil
    Participant

    Hey,
    I’m in the process of creating a parametric search view or/and Google map marker view that, based on selection out of a dozen or so locations (venues), will display all the organizers (course instructors in this case) at that venue. For example all the course instructors who lives in one of the major cities in the country.

    Problem that occurs for me now is that it seems like venues and organizer isn’t connected to each other in any way like Venues or Organizers are connected with Events. Like when I add an event with community events I get to choose an organizer for example, which suggests that they’re assigned somehow with the Events post type.

    I also notice that organizer taxonomy even have no field that is a location by default. Would it even be helpful add that as a custom field for my purpose? Is it possible to create a connections with custom fields between venues and organizers, a one-to-many relationship or how can this be done with TEC?

    Please help!

    #1193323
    Brook
    Participant

    Howdy Emil,

    I would love to assist here. Thanks for clearly outlining your goals and why you are trying to accomplish this.

    You certainly could link the two together, but it’s going to require a decent amount of dev work. At its simplest all you need to do is add a custom field, or “additional field”, to the organizer allowing you to specify a venue. I think the simplest route would be a custom field in this case.

    If you want to have  a fancy drop down to show all of the venues and let the user select one, checkout the class Tribe__Events__Linked_Posts__Chooser_Meta_Box to add that. Inside /the-events-calendar/src/admin-views/linked-post-section.php you can see how we implement that class to display both organizers and venues inside a fancy drop down.

    From there you have a field that links the two together. Now on the front end, inside the parametric search view or anywhere else, you can query this custom field and include any venue details you want in your queries and views.

    And that’s how a developer could build such a feature. Does that all make sense to you or your developer? Do you have any followup questions?

    Cheers!

    – Brook

    #1203151
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Can I connect venues to organizers like they are to events?’ is closed to new replies.