• HomeGo Home
  • AboutThen & Now
  • PortfolioRecent Projects
  • BlogDiscussion
  • ContactGive Me A Call
Glen Wheeler Web Developer and Motorsport Fan

Web Designer and Developer

Categories

  • Latest Articles (3)
  • Web Development (3)

Archives

  • January 2012
  • December 2011

« Adding Value To Search In WordPress 3.0

Editing WordPress Post Revisions

By glenwheeler | Published January 3, 2012
wordpressbadges

Post revision are extremely useful when it comes to rolling back to an older post, but don’t you think they happen way to often? This can get quite silly as wordpress does not have any limit on post revision amounts. So, lets take a look on how to limit or even disable the post revisions.

1. To limit the page revisions, or even disable the revision open wp-config.php.
2. Add these links to the bottom of wp-config.php

	define('WP_POST_REVISIONS', 5); // Maximum 5 revisions per post
	define('WP_POST_REVISIONS', false); // Disable revisions

3. Save the file and replace it on the server.

Adding these lines of code will only allow 5 post revisions. This will keep your database a lot less clunky storing all of those endless page revisions. To disable the revisions simply change the word ‘false’ to ‘true’

This article was posted in Latest Articles, Web Development and tagged Revisions in Wordpress, Wordpress 3. Bookmark the permalink. Follow comments with the RSS feed for this post.Comments are closed, but you can leave a trackback: Trackback URL.

« Adding Value To Search In WordPress 3.0

© 2012 Glen Wheeler Web Developer and Motorsport Fan. All Rights Reserved. Site By: Engine