• How do i update post published date with Query?

    As i am running a site that lets say i create a post 7 days ago, and after 7 days, i will update content to that post by “ID” of the post.

    However the post still remain at the same date as it was created, is there a wp query that i can use to change the post published date to the latest.

    like we know we can we update post meta but how do i change the post time to today if i provide the post id to the query

    Thanks for all the help ??

    Regards,
    Baoky

Viewing 2 replies - 1 through 2 (of 2 total)
  • you can just do it in the post section under status published:edit
    and then just choose the day/month/year : Time that you wish your post to be “posted at”

    no need to do a query for this.

    Thread Starter baokyads

    (@baokyads)

    I know i can do that, but i wanna use query to change and seeking help on how to change it..

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do i update post published date with Query?’ is closed to new replies.