My Calendar
[resolved] Indivdual Date Template Tags (4 posts)

  1. Breno1288
    Posted 3 years ago #

    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?


  2. Joe Dolson
    Plugin Author

    Posted 3 years ago #

    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.


  3. Breno1288
    Posted 3 years ago #

    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.

  4. MattCarrUK
    Posted 3 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • My Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic