Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

Susan Siow
Susan Siow
6,497 Points

WP Revision Headaches

I've included this line 'define('WP_POST_REVISIONS', false );' in wp-config.php to disable the revision feature but it doesn't work.

Also tried this > 'define('WP_POST_REVISIONS', 1);' and no success in limiting the number of revision too.

How can I actually turn off the revision feature in wp-config.php?

1 Answer

hmmm according to the codex wp_post_revisions setting for no revisioning is 0 for false and not 1:

http://codex.wordpress.org/Revisions true (default), -1: store every revision false, 0: do not store any revisions (except the one autosave per post) (int) > 0: store that many revisions (+1 autosave) per post. Old revisions are automatically deleted.

just strange that false hasn't worked. but 1 couldn't