Forums

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

  1. Zovar
    Member
    Posted 4 months 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. Otto42
    Moderator
    Posted 4 months ago #

  3. Zovar
    Member
    Posted 4 months ago #

    Oh, thank you!

Reply

You must log in to post.

About this Topic

Tags