WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.