Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I retrieve the latest revision post using wp-query? I am trying to replicate the behaviour as when a user updates a published post and clicks on preview.

So far I've tried editing wp-query to return drafts, this works for unpublished posts but after the post is published I can not get any further edits. I've also looked at get children, though this did not return anything useful.

share|improve this question
What have you tried so far? –  birgire Jan 5 '14 at 14:15
updated question –  Frank Astin Jan 5 '14 at 14:50
Can you share the code you tried? –  birgire Jan 5 '14 at 15:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.