2

I don't know why but I cannot limit post revisions even though I've added the code

define( 'WP_POST_REVISIONS', 3 );

Is there anything wrong in adding the code to wp-config file? Here are images of the problem.

Code added to wp-config file

Post revisions not limiting

Post revisions not limiting

1
  • 2
    There is an issue with this feature if there are already post revisions saved. There is a couple of threads on the net about this. Here is a quick search Mar 12, 2015 at 7:44

1 Answer 1

1

The option works from the moment you add it to your wp-config.php file. You can try to remove the old revisions using something like this Just back-up your db first.

1
  • Actually, I added that piece of code when I first installed WordPress. But the post revision limit is clearly not working.
    – vamsi
    Mar 12, 2015 at 13:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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