How can I get wordpress to get the publish date from a custom field?

Support General How can I get wordpress to get the publish date from a custom field?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #35860
    Robert FeddesRobert Feddes
    Participant

    I am not a coder, so if you show me code, please also explain how to use it.

    My question is:

    How can I get wordpress to get the publish date from a custom field?

    I am porting a site with many articles going back to even 2003 in publish dates.

    How can I get wordpress to use a MB custom field value for the published date?

    Thanks!

    #35866
    Long NguyenLong Nguyen
    Moderator

    Hi Robert,

    WordPress itself also supports a function to get the published date of a post. Please read more here https://developer.wordpress.org/reference/functions/get_the_date/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.