Tagged: Post Formats
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?
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.
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!