WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Breno1288
    Member
    Posted 2 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?

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

  2. Joe Dolson
    Member
    Plugin Author

    Posted 2 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.

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

  3. Breno1288
    Member
    Posted 2 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
    Member
    Posted 2 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.

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic