How can one get the unix timestamp of a published post (“the_date” or “the_time” functions) ?
Leave a Reply
You must be logged in to post a comment.
How can one get the unix timestamp of a published post (“the_date” or “the_time” functions) ?
You must be logged in to post a comment.
Just pass in the Epoc parameter.
the_time()
will output the string;get_the_time()
will return it into a variable for use elsewhere.As simple as :