• Resolved Aniaka

    (@aniaka)


    Hi Joe. Thanks for great addon πŸ™‚
    I have a few little problems/questions so I would like to ask You about it.

    1. I have problem with dots (from lists) like this: http://imgur.com/ajFEPbV
    This is daily widget but the same problem is when I use shortcode [my_calendar events….] in posts. How can I remove this dot and put the text a little to the left side?

    2. When I use in post code like this:
    [my_calendar_event event=”6″ template=”{title} {description}”] then I see something like this: http://imgur.com/hkNCjmW
    The last line (with date) is not necessary and I wanted to remove it. How can I do this?

    Thanks for help πŸ™‚

    https://wordpress.org/plugins/my-calendar/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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)

    Nobody can’t help me?

    Thread Starter Aniaka

    (@aniaka)

    1. Resolved – it was problem with my template, sorry πŸ™‚

    But still waiting for 2. i 3. to resolved πŸ™‚

    Plugin Author Joe Dolson

    (@joedolson)

    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!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Template questions’ is closed to new replies.