• i really want to lessen how much revisions wordpress saves. i’ve made the changes to wp-config.php and added the following code.

    define( ‘WP_POST_REVISIONS’, 2);

    but my recent post, in the admin page, even after i published it says i have 30 revisions. what am i missing? is there a way to clean it up? how do i get the setting to work?

    i took a screenshot of the wp-config.php file where i have the code and the number of revisions in my wp admin page. any help is appreciated. https://s21.postimg.io/wt6r5iaxz/revision_problem.png

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    Probably there where already some revisions saved in DB BEFORE you restricted to 2

    Thread Starter w1n78

    (@w1n78)

    thanks for the response. i created a new draft topic. i made some changes and save draft on every change. the revision number is now at 4, when it’s supposed to not be higher than 2. i thought i saw others having issues similar to mine but no solution regarding the setting. i’m tempted to go through the database and delete the records but i don’t believe that’s ideal nor practical. i did see the better delete revision plugin (https://www.ads-software.com/plugins/better-delete-revision/) – anyone have experience with it? is this a good solution to my question?

    Thread Starter w1n78

    (@w1n78)

    you know what, this plugin works for me https://www.ads-software.com/plugins/revision-strike/

    i wish i could use the wp-config solution rather than a plugin. oh well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_post_revisions not working’ is closed to new replies.