Added taxonomy need to query calendar by new tax

Home Forums Calendar Products Events Calendar PRO Added taxonomy need to query calendar by new tax

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1050514
    Buddy
    Participant

    Hey Guys, I’m trying to modify the calendar so you can select a location and the calendar view will only show the events based off that location

    I created a custom taxonomy called locations and assigned some events to a location, I also added a dropdown above the calendar so they user can select a location

    I’m trying to find a filter to filter out the wp_query so I can include my custom taxonomy query in calendar view so it shows only the selected location. Can you point me in the right direction? Thanks!

    #1051335
    Josh
    Participant

    Hey Buddy,

    Thanks for reaching out to us!

    A customization like this is beyond the scope of what we’re able to provide here in our forums. However, if I were trying to accomplish something like this I would start out (untested) by using “pre_get_posts” with a tax_query for your new custom taxonomy that gets triggered via ajax as the user select from the taxonomy dropdown.

    Let me know if this helps.

    Thanks!

    #1052065
    Buddy
    Participant

    Thanks this was helpful, pre_get_posts took care of it!

    #1052762
    Josh
    Participant

    Hey Buddy,

    Awesome! Happy to help.

    I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new one.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Added taxonomy need to query calendar by new tax’ is closed to new replies.