WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding the_date() to an array() (3 posts)

  1. Zovar
    Member
    Posted 5 years ago #

    Is there a replacement method for the_date()? I am creating an array of posts with

    'id'=>get_the_id(), 'date'=>the_date('','','',FALSE)

    but this doesn't work, because the_date() returns the value only once. I can't use the_time() either because there is no option to return the value, only echo it.

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

  3. Zovar
    Member
    Posted 5 years ago #

    Oh, thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags