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

  • 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 – Pieter Goosen Mar 12 '15 at 7:44
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.

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

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.