ite

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Overriding eventDisplay in custom filter #1301624
    ite
    Participant

    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?

    in reply to: Custom title for custom filter #1301617
    ite
    Participant

    Hi 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 ๐Ÿ™‚

    in reply to: Custom title for custom filter #1301576
    ite
    Participant

    Hey!

    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’s public function displayFilter() as a template, I was able to create something similar to the screenshot.

    ite
    Participant

    Hi 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.
    in reply to: Filter by year or month or previous/upcoming #1294272
    ite
    Participant

    Hey 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.

    in reply to: Showing day and month outside of list-widget #947198
    ite
    Participant

    Hi, 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 ๐Ÿ™‚

    in reply to: Showing day and month outside of list-widget #947185
    ite
    Participant

    This reply is private.

    in reply to: Showing day and month outside of list-widget #947170
    ite
    Participant

    Hi, 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/GKw75Fks

    Does this help any further?

    in reply to: Showing day and month outside of list-widget #946887
    ite
    Participant

    Hi,
    this is how I try to show the dayname:
    http://pastebin.com/QzNjcCmG

    And 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/68ua84an

    Hope this helps ๐Ÿ™‚

    in reply to: How to show only the daynumber of an event #943917
    ite
    Participant

    Thanks, but by using this it shows 01 (for ‘d’) and Jan (‘M’)…
    Both in single-event.php and list-widget.php…

    in reply to: How to show only the daynumber of an event #943912
    ite
    Participant

    Hi, 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.

Viewing 11 posts - 1 through 11 (of 11 total)