Conditionally displaying time and date

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

This topic is: not resolved

Tagged: 

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

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

    arush
    Participant
    Post count: 3

    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?

    Thanks.

    #67487

    Gary Jones
    Moderator
    Post count: 693

    Yes, you can – you’ll likely want to use http://codex.wordpress.org/Function_Reference/has_post_format 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.