R
R
ragnar_ok2018-07-17 15:57:14
WordPress
ragnar_ok, 2018-07-17 15:57:14

How to change the publish date of a WordPress post?

How do I make a WordPress post publish date be the date it was moved from "Draft" to "Published" instead of the date the "Draft" was created?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
id_baton4eg, 2018-07-17
@ragnar_ok

Change the get_the_date() function in the output template to get_lastpostmodified

E
ermushko, 2014-11-27
@ermushko

To begin with: what does the site actually spin on? "Connect" does it mean to download a plugin or write it by hand? Even in Pykha, you can parse an XML tree with just a couple of lines of code.

S
Sergey, 2014-11-27
@gangstarcj

XML serves to pass data in your case.
You need to get this file, read it, process the data and save, output, (do something else).
If the site is in php SimpleXML can be used as one of the options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question