Event Calendar Pro event category query

Home Forums Calendar Products Events Calendar PRO Event Calendar Pro event category query

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26958
    Sean
    Participant

    Hello,

    I\’ve been trying to show just one category (calendar) on my park pages using the code provided on this page: https://theeventscalendar.com/support/documentation/the-events-calendar-template-tags-general-functions/#functiontribe_get_events

    The code works if I remove the \’tax_query\’, it shows all of my events, but does not filter for my selected taxonomy. Is this a bug? Is there another way of doing this?

    Below is my code.
    http://pastebin.com/RDK7cxgG

    #26994
    Barry
    Member

    Hi Sean. I put this snippet together to answer someone else’s question, but figured it might be useful here too: http://pastebin.com/adcVxb0R

    That should work (it does for me!) so perhaps you could use it as a template?

    #26996
    Sean
    Participant

    I figured out what was going on, I’m using Pippin’s Easy Custom Content Types and had to add my custom post types to the index using this code:
    http://pastebin.com/PepYeke6

    I just forgot to include tribe_events in the list of post types. I works splendidly now. Thanks for the response.

    Sean

    #26998
    Barry
    Member

    Cool – thanks for getting back to us with the fix, could be useful for someone else out there 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Event Calendar Pro event category query’ is closed to new replies.