Conditionally displaying time and date

Community Forums Forums Design Tips and Tricks Conditionally displaying time and date

This topic is: not resolved


This topic contains 1 reply, has 2 voices, and was last updated by  Gary Jones 2 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #59390


    Hi all,

    I am working on modifying the Metro child theme for Genesis, and am wondering if there’s a way to conditionally display the time and date a post was published. I have added post formats support, and for the shorter formats like statuses and links and asides, I want to display the date and time a post was published, while for standard posts I don’t want to display a date or time at all. Is there a way to do this?



    Gary Jones

    Yes, you can – you’ll likely want to use to check if a post is of a particular format or not.

    Changes in Genesis 2.1 – the ultimate guide to every single change in Genesis Framework 2.1, 2.1.1 and 2.1.2 (all 90 of them!) | @GaryJ

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.