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.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.