Support » Plugin: My Calendar » [Plugin: My Calendar] Upcoming events shortcode

  • Resolved Twentyfourten

    (@twentyfourten)


    I am using upcoming events widget in sidebar but also using upcoming events shortcode in a page.

    My shortcode is as follows:

    [my_calendar_upcoming before="0" after="3" type="event" fallback="No events coming up!" category="" author="" template="{date} {location}" order="asc" show_today="yes" skip="0"]

    This behaves as I’d expect, and outputs an unordered list item with the date and location data only.

    However, as soon as I add any before and after attributes to my template tags like so;

    [my_calendar_upcoming before="0" after="3" type="event" fallback="No events coming up!" category="" author="" template="{date before="<strong>" after="</strong>"} {location}" order="asc" show_today="yes" skip="0"]

    I get an unordered list output of;
    date – title </br>
    time, Category

    Why does this happen? It is not picking up this output from my sidebar widget as tags are not same, it seems to be defaulting to some other template?

    http://wordpress.org/extend/plugins/my-calendar/

Viewing 1 replies (of 1 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    You’ve got a quotes nesting issue. Since you’re using double quotes within the template attribute value, and using double quotes to delimit that value, the shortcode parser can’t read the template, and throws it away.

    Instead of

    template="{date before="<strong>

    You need

    template='{date before="<strong>

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: My Calendar] Upcoming events shortcode’ is closed to new replies.