• Follow us on Twitter
  • Join our Facebook Group
  • Join me on Google Plus
  • Add me on Linkedin
  • RSS
Welcome to Ontwerps close

  • Home
  • Over
  • Diensten
  • Portfolio
  • Blog
  • Contact

Blog

WordPress Post Revisions

0 Comments/ in Blog, Tutorials, Wordpress-CMS / by ontwerps
september 19, 2009 Howto delete Existing WordPress Post Revisions: To delete and remove all existing post revisions entries and rows from WordPress database Posts table, simply login to MySQL command-line interface, phpMyAdmin, SQLyog or other MySQL GUI tools. Select the appropriate WordPress database (if you have more than one databases on the same server), and then issue the following command (it’s also recommended to backup the database before performing the deletion SQL statements): DELETE FROM wp_posts WHERE post_type = “revision”; WordPress provides constant WP_POST_REVISIONS that can be used in wp-config.php configuration file or plugin to set the status state for post revisions feature. To turn off and disable automatic post revisions all versions saving feature in WordPress 2.6 or later version, simply add the following line of code to wp-config.php file located in the root or home directory of WordPress blog. define(’WP_POST_REVISIONS’, false); Although you says you can do this : define(‘WP_POST_REVISIONS’, false); to disable revisions, you can also do this define(‘WP_POST_REVISIONS’, 3); to limit the number of revisions to 3 (plus the autosave). Not only that, if you now save a post/page which has more than 3 it will delete the old ones for you! Once set, WordPress does not attempt to save or store any revisions, except the one AutoSave per post.

No related posts.

← Magento Import Products
Google does not use the keywords meta tag in web ranking →
Comments

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Geef een reactie Reactie annuleren

Je e-mailadres wordt niet gepubliceerd. Verplichte velden zijn gemarkeerd met *

*

*

De volgende HTML tags en attributen zijn toegestaan: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Categorieën

Tags

blackberry borders branding centos chrome cms color CSS css3 cycling debug font glyphs gradients hover HTML-HTML5 image import invoice iphone joomla jquery linux magento osx pattern photoshop scroll sql table Template textures twitter vcard Wordpress-CMS
© Copyright2012 - Design by ontwerps