Thread Starter
Aniaka
(@aniaka)
I have one more question.
3. How can I show all events from chosen date (for example 19th of April)? Is it possible to do this by post code?
Thread Starter
Aniaka
(@aniaka)
1. Resolved – it was problem with my template, sorry π
But still waiting for 2. i 3. to resolved π
2: Set ‘list’ = empty.
[my_calendar_event event="6" template="{title} {description}" list=""]
The single event shortcode automatically adds a list of dates for that event; but you can eliminate that by setting the list template to blank.
3: There are a few ways to do this, but they all require some coding. You can use the data API to pull a specific date from the database in JSON format; but that’s probably the most complex option. The easiest is to use the date filters to set a specific shortcode to show only a specific date.
[my_calendar time='day' id='custom']
add_filter( 'mc_filter_year', 'my_custom_year_filter', 10, 2 );
function my_custom_year_filter( $year, $args ) {
if ( $args['id'] == 'custom' ) {
$year = '2014';
}
return $year;
}
And then do that twice more with mc_filter_month and mc_filter_day to return a specific date for the calendar with ID ‘custom’.
Thread Starter
Aniaka
(@aniaka)
2. Works perfectly, Bingo!
3. I thought that it will be easier, but I will try.
If someone else have the same problem I can also say that it can be possible by the other way (good when we have few events, very poor when we have a lot of events) – we can write the date in “location” and filter by this using ltype and lvalue π
Thanks a lot for help, fantastic support!
Now I am waiting for adding in calendars possible to changing url event from popup into url for chosen website (the same as in other widgets with using parameter {link_title}), which we talk few weeks ago. This will be good innovation.
Have a nice day!