• Resolved smokinlisovalye

    (@smokinlisovalye)


    I used the_date function but function not show date when it comes to the post which I edited.

    I checked the function in wordpress but I couldn’t find an parameter for published date.

Viewing 1 replies (of 1 total)
  • Thread Starter smokinlisovalye

    (@smokinlisovalye)

    I found this in stackoverflow…

    SPECIAL NOTE: When there are multiple posts on a page published under the SAME DAY, the_date() only displays the date for the first post (that is, the first instance of the_date()). To repeat the date for posts published under the same day, you should use the Template Tag the_time() or get_the_date() (since 3.0) with a date-specific format string. Use to add the date set in the admin interface.

    So I changed echo the_date();
    to this
    echo get_the_date(‘F j, Y’);

    It worked.

Viewing 1 replies (of 1 total)

The topic ‘Edited Posts have no date’ is closed to new replies.