SQL Query for getting all posts in their latest revised state
Thanks to @AhmedMahdi’s comment I figured out the following works for my situation: select * from wp_posts where post_status=”publish” order by post_modified desc; The where condition is necessary to remove all the draft or private posts that I am not concerned with.