Need help? Check out our Support site, then


Formatting date pulled from post array

  1. jackrabbitrocks
    Member

    I'm grabbing the date from a post object $post->post_date and I want to format it. I know you can format a date object as shown here Since I'm not that familiar with WP I don't know how the date that I'm grabbing from my post relates to the date object that takes parameters which allow it to be formatted.

    This is the code that I'm working with that I would like to format: echo '<a>' . $recent["post_title"].'<br />'. $recent["post_date"].'<br />'.$recent["post_excerpt"].'</a> ';

    Thanks for the help!

  2. You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you'll find help at the WordPress.org forums.

    If you don't understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It'll help people to answer your question.

    This is an automated message.

Topic Closed

This topic has been closed to new replies.

About this Topic