WordPress.org

Ready to get started?Download WordPress

Forums

PHP strtoupper question... (3 posts)

  1. amanzi
    Member
    Posted 9 years ago #

    I would like to print the date in my posts with an abbreviated month in uppercase. I tried using this but it still prints it in lower case:

    <?php echo strtoupper( the_time('M') ); ?>

    Can anyone tell me what I'm doing wrong?

    Thanks - Stuart.

  2. rwatkins
    Member
    Posted 9 years ago #

    Hey,

    Try using get_the_time('M') instead of the_time

    Rob

  3. amanzi
    Member
    Posted 9 years ago #

    Thanks - that worked!!

    Cheers - Stuart.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.