Upgrade WordPress Blog in a Minute via SSH

December 11, 2008

Having to upgrade your WordPress install every time a new version is released is necessary, but also very boring. If you have a SSH access to your server, here’s a very quick way to upgrade your WordPress install. This is probably the most important step of this whole tutorial: always backup your WP Database and files. This tutorial have been tested, however I won’t be held responsible for any kind of data loss. Once done, you can connect to your server by using SSH. On Mac and Linux platform you can use the Terminal,... [Read the full story]

Automatically remove code mistakes in wordpress posts

December 11, 2008

If you’re not good with XHTML, or if you’re running a multi-author blog with people which don’t know XHTML either, you’re probably upset with the amount of code mistakes that can be found in your posts code. Here’s a great piece of code to automatically remove code mistakes as such as empty <p>, inline style, etc. You first have to creat the function which will takes your post content, clean it and print or return it. Copy the code below to the functions.php file from your theme. Create that file if it doesn’t... [Read the full story]

Add a Last Modified Date to Your Wordpress Theme

December 10, 2008

Do you run a WordPress blog with a lot of resources on it?  Or maybe you find that you often have to update older posts for whatever reason? This hack is designed for people who are constantly updating their older content by displaying a “last modified date” in addition to the post date. This will help readers to know that despite the publish date, the post may still be current. First, you’ll want to make a backup of your theme. Now locate the code for your post date where you want to display the most recently updated... [Read the full story]

Easily modify WordPress wp-options table

December 9, 2008

Everytime you’re defining a plugin setting or a custom field value, WordPress uses the wp-options table of your database to record it. Sure, you can use PhpMyAdmin to modify that table, but there’s even easier. To easily access to the wp-options table, juste enter the following url in your browser adress bar: http://www.yourblog.com/wp-admin/options.php You’ll see a control panel appearing. From it, you can modify almost all data recorded in the wp-options table. Of course, don’t do anything unless you know what... [Read the full story]

Check out if a wordpress post has an excerpt

December 9, 2008

How to be able to know if a specific post has an excerpt? It may seems hard at first because there’s no built-in WordPress function to achieve it, but we got this useful code which make it possible. To check out if a post has an excerpt, simply paste the following code within the loop: <?php if(!empty($post->post_excerpt)) { //This post have an excerpt, let's display it the_excerpt(); } else { // This post have no excerpt } ?>  Read More →

Page 5 of 7« First...«34567»