Sitemap last modified date hack?

[ad_1]

I usually schedule posts ahead. Right now, posts are already scheduled for December. When they are live, they show up in the sitemap with the last modified date, which is this month.

Is there a way to change this date to the date that the post was posted? To add a function where: if the posted date is later than the modified date, use the posted date.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer