Forum Replies Created
-
AuthorPosts
-
iteParticipant
Actually, the other filters aren’t working properly either, the filter for the custom taxonomy only returns upcoming events too โ is the only way around this to manually set the start_date and end_date on when using the various filters?
iteParticipantHi Cliff,
I was expecting the code blocks to work similar to how they work on StackOverflow, so that’s why it looks funky โ there really isn’t any shortcomings, but I wish the knowledgebase included information on how to customise everything about the filters, such as how they’re displayed! I had to peek around the code to find the correct function to override in the sub-class, but I managed ๐
iteParticipantHey!
I found a solution โ you can override the
public function displayFilter()
in the custom filter to change the look and feel of a filter. Using the Filter.php’spublic function displayFilter()
as a template, I was able to create something similar to the screenshot.June 22, 2017 at 1:11 am in reply to: Query for three events, both future and past, in special order #1301564iteParticipantHi there,
Thanks Victor, I came up with the following solution:
$upcoming_events = tribe_get_events([ 'post_type' => 'tribe_events', 'posts_per_page' => 3, 'eventDisplay' => 'list', 'meta_query' => [ // ... ] ]); $past_events = tribe_get_events([ 'post_type' => 'tribe_events', 'posts_per_page' => 3, 'eventDisplay' => 'past', 'order' => 'DESC', 'meta_query' => [ // ... ] ]); $events = array_slice(array_merge($upcoming_events, $past_events), 0, 3);
- This reply was modified 6 years, 10 months ago by ite.
iteParticipantHey Cliff,
Alright, thanks. What I want to achieve is a set of dropdowns, that can work independent of each other, and with ajax, like the filter bar.
So, one drop down has the months, and by default they are connected to the current year. When you pick one, the list view filters the list with events from the relevant month.
The same goes for the year-drop down.
Is this possible to achieve using standard methods? I’ve tried to outline a method of achieving something similar in your documentation, but it’s a bit tricky to use, since there are very few examples.
iteParticipantHi, as you may see in the code from the last post from me (http://pastebin.com/3wspsW26) the code that shows the event (and the wront date) is coded in the sidebar. It do not use the Event List Widget and trying a different theme would not work as the code is in the template files ๐
iteParticipantThis reply is private.
iteParticipantHi, this code still shows todays date.
I have also edited the file single-event.php and added this in /MyThemefolder/tribe-events/
This shows correct date and you may see the code here: http://pastebin.com/GKw75FksDoes this help any further?
iteParticipantHi,
this is how I try to show the dayname:
http://pastebin.com/QzNjcCmGAnd here is the code I have in the page sidebar. I show the activity using Advanced Custom Fields on employees profile-pages:
http://pastebin.com/68ua84anHope this helps ๐
iteParticipantThanks, but by using this it shows 01 (for ‘d’) and Jan (‘M’)…
Both in single-event.php and list-widget.php…iteParticipantHi, Iยดm trying to use this in a template override for the activity list widget for example.
But also in an template override for single event. -
AuthorPosts