Multiple queries with Events Calendar Plugin

Home Forums Calendar Products Events Calendar PRO Multiple queries with Events Calendar Plugin

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #617802
    Manager
    Participant

    I’m using tribe_get_events to load a custom query of events. I’d like to load a different amount of posts_per_page depending on the custom taxonomy. So basically load all of the events except if events are within a specific category and then load only ONE event from that category. I’ve tried merging queries using array_merge with no luck. Is this possible? Thanks in advance!

    #618133
    Manager
    Participant

    I figured out another solution, thanks anyway!

    #708439
    gabriele scaduto
    Participant

    same Problem!

    #709042
    Brian
    Keymaster

    Hello,

    Sorry we missed this topic earlier. Are you trying to load events by custom taxonomy and on certain custom taxonomies only show one event?

    The tribe_get_events() function using get_posts so starting there may help out.

    http://docs.tri.be/Events-Calendar/function-tribe_get_events.html

    http://codex.wordpress.org/Template_Tags/get_posts

    One way to do it, is in a custom loop, check what custom taxonomy the event has and if it matches one you only want to show one event you could exit the loop.

    Also, fringearts if you could outline what you did to get yours working that could help other people looking to do the same thing in the future.

    Thanks!

    #740229
    Brian
    Keymaster

    This thread’s not seen much activity recently so I’ll go ahead and close it. Of course if you still need help with this or any other issue please don’t hesitate to create a new thread (or threads) and one of the team will be only too happy to help. Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Multiple queries with Events Calendar Plugin’ is closed to new replies.