• Resolved Breno1288

    (@breno1288)


    Hello there,

    I’m attempting to use the template tags to style the month and date output in the “My Calendar: Upcoming Events” widget.

    I know there is the {date} template tag that will display the date in the format set in the options.

    However I am wondering if there is a {month} and {day-date} tag so I can style them separately.

    For example, I wish to obtain the month in it’s 3-letter abbreviation and just the individual day’s date so I can style them differently, one above the other.

    Is it possible to pull these values of the event date out separately like that?

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

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

    (@joedolson)

    It’s not yet possible to grab the individual pieces of the date separately; although you can structure your date template to include HTML. It’s pretty finicky to do, mind you. You have to make pretty heavy use of escaping characters.

    http://us.php.net/manual/en/function.date.php

    Thread Starter Breno1288

    (@breno1288)

    Thanks for that Joe.

    It did require heavy use of escape characters, but I was able to achieve the styling I wanted on the date by editing the {date} template.

    Breno1288 – Could you share how you did this please? I really want to style the date parts differently, one above the other, but have little idea when it comes to php.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: My Calendar] Indivdual Date Template Tags’ is closed to new replies.