Forum Replies Created
-
AuthorPosts
-
erictondelli
ParticipantGreat!!! it’s working now.
Thankserictondelli
Participant*i want to get events in a date range, for example from 20 Dec to 25 Dec
where event’s start_date(EventStartDate) is between 20 Dec and 25 Decerictondelli
ParticipantHi Barry,
i think we are near to find the right script!I see this:
$events = tribe_get_events( array(
‘eventDisplay’ => ‘custom’,
‘start_date’ => $today,
‘end_date’ => $tomorrow
) );Now, i want to get events in a date range, for example from 20 Dec to 25 Dec.
How have i to set the query? (is possible set this kind of query or i have to retrieve all events and then check their start_date?)
What is the difference between from start_date and EventStartDate?erictondelli
ParticipantHi Barry,
i’ve done! Is not more flexible but it works 🙂
Now please help me with the query:
$upcoming = new WP_Query();
$upcoming->query(array(
‘post_type’ => ‘tribe_events’,
‘eventDisplay’ => ‘past’,
‘posts_per_page’ => 10,
‘paged’ => $paged)
);Could you send me a link or explain how tribe filter events works with WP_Query and which param/options i could use?
thx very much!
Lucaerictondelli
ParticipantHi timothygrahl,
i have to do your same task!
Do you find all .js and .css to see event list view in hp?erictondelli
ParticipantHi Barry,
unfortunanly i am a good php dev, but no much exp with wp coding hook and filter 🙁
So now i think is the moment to grow up my know how with this.My first question was ambiguos due to my bad english: we want in hp list events view, the same page at /events/.
If i understand right, i could obtain this only create a new template and use tribe_get_view(), right? (or with sidebar widget)
I read about https://theeventscalendar.com/queries-and-pagination/ and i tried it, but i had some problem with “enqueuing the correct scripts and styles.”Do you have some tutorials or existing examples that show how to do it or i am to create it?
-
AuthorPosts
