Order by Sticky in tribe_get_events?

Home Forums Calendar Products Events Calendar PRO Order by Sticky in tribe_get_events?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #148209
    peterquale
    Participant

    Hello,
    I’ve got a spot on the home page that pulls in the next upcoming event using this code:
    $all_events = tribe_get_events(
    array(
    ‘eventDisplay’=>’upcoming’,
    ‘posts_per_page’=>1
    )
    );
    The client wants to be able to have a featured event stay there if specified… And I noticed there is a sticky option within Events. Is there a way I can tie into this here?

    Thanks.

    #150397
    Barry
    Member

    Hi!

    The sticky in calendar view option is really just to ensure that if for instance things are configured such that no more than 5 events display per day in month view, a given event is always listed and doesn’t “slip” down the list. It’s possible you could leverage that here – but might it be easier to set use a tag like always-featured and include a taxonomy query to limit the results to events with that tag?

    Let me know if that helps!

    #150788
    peterquale
    Participant

    Got it, that works. Thanks!

    #151649
    Barry
    Member

    Excellent!

    I’ll go ahead and close the thread. Of course, if we can assist with anything else please don’t hesitate to open a new thread (or threads) and one of the team will be only too happy to help 🙂

    Last but not least, we’d love to hear your thoughts on The Events Calendar so far and if you had time to post a review that would be excellent.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Order by Sticky in tribe_get_events?’ is closed to new replies.