1

I've got a custom post type where the posts often undergo several minor revisions.

Saving all the revisions is unnecessary and seems wasteful to keep so many useless DB entries.

But I do need to keep the Original (first published version) and the Latest (most recently updated version).

Can anyone point me in the direction of how to accomplish this?

0

Open up your wp-config.php file.

Add the following line:

define('WP_POST_REVISIONS', 2);

You may have to change it from 2 to 1.

Always back up your files first.

EDIT: this will not save your original. Sorry, I overlooked that part of the question.

  • This answer does not address the question. Is it possible to remove this answer so that the question remains unanswered? – brandonjp Mar 17 at 21:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.