Tech-Evangelist

Technical Articles, Musings and Opinions from Tech-Evangelist

  • Home
  • About
  • Guidelines
Previous article: Tips for Improving 3D Movie Viewing in Your Home Theater
Next article: YouTube May Soon Be In The Movie Rental Business

WordPress Tips and FAQs

August 7, 2009 By Doogie - Copyright - All Rights Reserved

The following is a summary of some of our favorite WordPress tips, shortcuts and FAQs.

You do need to have some working knowledge of PHP in order to implement some of these tips. If you are not sure of what you are doing, either have an experienced PHP programmer make the changes, or keep an original copy of any script that you change, just in case you make a mistake and screw up your blog.

Some of the tips require changes to theme scripts and there are many different versions of various theme. If you are not a skilled PHP programmer, got for the plugin options whenever they are available.

These tips apply to the more current versions of WordPress. Many function names changed with version 2.6.1 and the entire administration interface changed with version 2.7. If you are using an older version of WordPress, you need to upgrade it as soon as possible. Newer versions have closed numerous security holes that hackers were using to exploit WordPress blogs.

How to Disable / Turn Off Post Revisions

Post Revision logging was added to WordPress 2.6 and above. It saves multiple revised copies of WordPress posts. Post Revisions is useful if you have multiple people editing your blogs, of if you accidentally delete an important block of text and want to restore it. But that probably is really useful for less than 1% of the WordPress blogs. If you need this degree of protection, then it can be useful and you should leave it turned on. But if you make a lot of revisions, the log file can build up quickly. To disable Post Revision logging, simply add the following line to the wp-config.php file.

define('WP_POST_REVISIONS', false); 

How to Display the Most Recent Posts

There are several plugins that allow you to display links to the most recent posts in your blog. However, displaying the most recent posts does not require any type of programing genius, because the function to do so is built into WordPress. Just use the following code snippet in any WordPress theme script.

<h2>Recent Articles</h2>
<ul>
<?php wp_get_archives('type=postbypost&limit=10'); ?>
</ul>

You can change limit= to any number of posts that you wish to display.

A good place to use this snippet of code is on the Error 404 (Page Not Found) page in your theme. That is named 404.php.

Filed Under: WordPress Tutorials

Categories

  • Affiliate Marketing
  • CSS Tutorials
  • FileZilla Tutorials
  • Home Theater
  • Internet Marketing
  • Internet Technology
  • Kindle Tips
  • MySQL Tutorials
  • Online Auction Tips
  • Paint Shop Pro Tutorials
  • PHP Tutorials
  • Tech News
  • Thunderbird Tutorials
  • Video Production
  • Web Site Development
  • WordPress Tutorials
Content and images are copyrighted by Tech-Evangelist.com and others

Copyright © 2023 Tech-Evangelist.com - All Rights Reserved
Posted code samples are free to use. Do not reproduce or republish articles or content on another web site.

Privacy Policy : Terms of Use