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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.