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?
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?
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.
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
The topic ‘Order by Sticky in tribe_get_events?’ is closed to new replies.