1. Custom login page
I was actually inspired to write this post because of a 9rules note I started recently. David Airey beat me to the punch with his own version and credit should go to ayushsaran for starting the whole thing but here is mine at last.
This one isn’t so much a tip or trick as a nicety. It’s cool to have the WordPress login page customized to fit your own website branding. This is even more significant for multi author blogs, or sites you have set up for clients as it adds that little extra something.
The process is very simple. Create two images (login-bkg-tile.gif and login-bkg-bottom.gif) and then stick them in the wp-admin/images/ folder from your WordPress installation. With a bit of effort you can create something nice.
2. WordPress Tutorial: Multiple WordPress Installations Using a Single Database
Sometimes more than one WordPress installation is necessary on a single site and WPMU would be overkill, or sometimes a hosting provider limits the number of available databases per account, or maybe you just want to keep things more organized rather than have a bunch of databases scattered everywhere. In any case, you’ll want to install multiple instances of WordPress, each one using the same database.
Luckily, this is quite simple to do, but you must install WordPress manually in order for it to work properly. A majority of the one click installations (most common is Fantastico) do not allow you to specify the prefix to use and this is absolutely necessary to be met with success.
During the installation process*, when it comes time to modify your wp-config.php file (or on the WordPress config options screen), make sure that you change the default wp_ prefix to something different.
3. WordPress Permalink Structure
By default WordPress uses URLs containg a question mark and numbers for your permalinks and archives such as “http://yourdomain.com?p=123″. In order to optimize your blog for maximum keyword density, a good idea is to change that setting to a custom permalink structure.
In your WordPress admin area, click “Options” and then click “Permalinks”. Select “custom” in the Customize Permalink Structure area and in the box next to “custom” enter this: /%category%/%postname%
This will create URLs for your permalinks and archives that would look like this: http://yourdomain.com/yourcategory/title-of-your-post
Click “Update Permalink Structure” to save this setting.
4. Adding A Side Blog
- Pick a desired category and add it in your blog (i.e. category “Side Blog”)
- Implement the following code into your “Functions.php” in your theme’s directory:
<?phpfunction asidesFilter($query) {if($query->is_feed || $query->is_home || $query->is_ search) {$query->set(’cat’, ‘-115?);}return $query;}>add_filter(’pre_get_posts’, ‘asidesFilter’);>?>
(Notice the number 115 is the category ID number for the chosen category. Yours will be different.)
5. How to Disable Commenting on Posts Older Than 1 Month
A great way to reduce the amount of spam you receive is to disable the ability to comment on posts that are more than 1 month old. Just paste the following in your functions.php file. Note: To change the amount of time from 1 month, just replace 30 (days) with any number of days you want.
<?php
function close_comments( $posts ) {
if ( !is_single() ) { return $posts; }
if ( time() - strtotime( $posts[0]->post_date_gmt ) > ( 30 * 24 * 60 * 60 ) ) {
$posts[0]->comment_status = 'closed';
$posts[0]->ping_status = 'closed';
}
return $posts;
}
add_filter( 'the_posts', 'close_comments' );
?>
6. Adding Tabs to Your Blog Sidebar
The recent blog redesign gave me a bit of a head ache. In order to implement the tabbed navigation from my sidebar, I had to test a couple of scripts. I know all of them integrate like a charm on other WordPress blogs, but for one reason or another, each time I finished setting up and customizing a certain script, some new weird bug showed up.
The problems were caused by various factors (some of them very weird): having other anchor links (like #comments) in my WordPress theme, a conflict between Prototype framework used by WordPress and jQuery used by a script, etc, etc.
So after testing DomTab, Tabifier and idTabs, I finally managed to get the job done. When all hope was lost, I thought I should give Yahoo! UI Library a shot. They have this really neat component called TabView, which in my case worked like clockwork. On top of that, it’s pretty quick and has absolutely no flicker or delay when loading the content. All the other scripts had at least a small delay.
I saw implementations of each of the above mentioned scripts on WordPress and they all have pretty much the same HTML structure. Still, I think the Yahoo! TabView is the best choice.
7. Google Syntax Highlighter for WordPress
This plugin easily integrates the Google Syntax Highlighter by Alex Gorbatchev into WordPress.
Feature summary
- 100% client side, no server dependency
- Multiple languages support
- Wide browser support
- Very lightweight
8. Installing Xampp and WordPress
WordPress is a popular CMS system which is very popular now. I found there is lots of people still trying to use wordprss however they don’t know how to work on a local computer. Here I am trying to show you how to setup WordPress in your local computer so that you will save your time from updating and previewing files (so, you don’t have to frequently upload files on every change). You can also use the local version to test new plugins, themes, and upgrades. This tutorial is intended for beginners who want to learn how to run WordPress locally.
Before you start, let’s look at the requirements to run WordPress:
PHP 4.3+
MySQL 4+ Database Server
9. 4 Simple Ways To Speed Up WordPress
Some self-hosted WordPress sites tend to run slow, especially when you receive tons of heavy traffic every day. This may be a result of the amount of large files your site needs to load or inefficient coding. But there’s nothing worst than a slow site, so here are some quick tips on how to speed up your self-hosted WordPress site. These tips mostly apply to self-hosted WordPress site because if you’re site is hosted on WordPress.com, you’re already being taken care of.
1. Staying up to date with releases
Staying up to date with the latest version of WordPress is critical. In every update, there are usually a lot of performance enhancements. The developers at WordPress don’t release updates just for fun, but because they’ve upgrades or made something about WordPress better.
Same situation with WordPress plugins, stay up to date with the latest versions. It’s as important, and for the same reasons. WordPress plugin developers release new versions because they’ve modified the code in some way to make the plugin better. So keep up with the releases!
10. Reset Your Lost WordPress Administrator Password
For some reason, people have trouble with this, I don’t know why – I never have.
They either don’t get the e-mails, or the password doesn’t seem to reset, or it resets and because they don’t get the e-mail they can’t get the activation link, or they don’t have access to the database, or so on and so on and so on.
Tired of all of those posts I decided there had to be a simpler way. Enter this totally insecure script, emergency.php
emergency.php does 2 things: It allows you to change your WordPress blog administrator password and it sends off an e-mail to the blog administrator, letting them know, once it’s been changed, what’s happened.
It does not require that you be logged in. It only requires that you have the ability to upload the file to your server, and that you know the current WordPress administrator’s username. Hint: That’s usually admin.
11. How To: Twitter Bar, Popular Posts, Random Stats
Every week I receive more than a handful of emails from people asking me what I use to display my Twitter status on this blog, as well as how I do the “popular this month” block and display random blog stats in my sidebar. Hopefully this post will answer those questions.
Twitter Status
Popular Posts This Month
Random Stats
12. WP Super Cache
This plugin generates static html files from your dynamic WordPress blog. After a html file is generated your webserver will serve that file instead of processing the comparatively heavier and more expensive WordPress PHP scripts.
13. How To Add Gravatars For The Post Author in WordPress
Now that Gravatar support is part of the WordPress core adding them into your WordPress theme is easy. Adding them to your comments has been documented. How about adding them to your post titles to highlight the comment author? Within the loop? That’s fairly easy too. Here’s the code:
<?php echo get_avatar( get_the_author_email(), '80' ); ?>
Pretty simple, huh? get_the_author_email outputs the post author’s email and the “80” is the size of the avatar image in pixels (you can change that). How this will look depends on how you use it; where you put it in the theme (it has to be in the loop!) and how you style it.
14. How to highlight author comments in WordPress
A while ago I was looking around for how to make my own comments a different color on my blog. Most of the advice was along the lines of “Add code to check if the commenter’s email is the same as the email address of the blog’s author.” Can you spot the flaw in that logic? If a commenter knows the email address of the blog author, she could use the blog owner’s email address in her comment and get her own comment highlighted. Worse yet, someone could try to discover the blog owner’s email address by trying lots of email addresses until they saw their comments change to a different color.
So I dug a little deeper and found a good answer on this support thread. The trick is simple: instead of checking the author’s email address, check their user id to see if it’s the user id of the blog owner. Pretty smart.
15. How To: Avoid Duplicate Posts
The Codex article the reader mentioned was regarding the Loop. Although the example shows how to avoid a single duplicate post, it doesn’t show how to avoid duplicating multiple posts.
Here’s how to show two individual loops without duplicating posts in either loop.
16. How To Display Feedburner Subscriber Count In Text
I believe you’ve seen websites and blogs that uses the text-based Feedburner subscriber count instead of the chicklet. I hope you are not getting the idea the these guys update their feed count manually. Instead, it can be done easily with scripts, and the reason why you want to do is – it gives you total flexibility in terms of design, styling and display.
17. How To: Converting Your Category Pages to Display Post Titles
Many WordPress themes are setup to display their category pages in the same format as your blog’s homepage, making your categories useless to some. This can cause duplicate content problems, as well as making your categories difficult to avoid. If this isn’t the case for you, then your theme is probably instead setup to just display a post excerpt for each post on your category page. I’ve never been a fan of this either, as this format strips your post of links/styles and doesn’t give you control over how much of the post to display.
Instead, I’ve always liked the idea of showing only the post titles on your category pages. If you are good at making post titles, this should help someone navigating your categories to find what they are looking for.
18. Styling Individual Posts Using the_ID
How many times have you typed up a post and published it, only to wish that you could style that post just a little differently than the others. One example might be a special announcement post that maybe you wanted to highlight with a unique background color. Well we are going to take a look at one method of doing this in Wordpress.
Before we get started on the details I’d like to direct you to a short read in the Wordpress documentation on the
19.
See How Easily You Can Increase Your Comment Conversation
If you could install one plugin and it would help to increase the conversation in your comments, would you do it?
To me, the hardest thing about keeping up with comment conversation is knowing that something new has been posted. With some blogs, you are able to subscribe to an RSS feed of comments– so I could track it with Bloglines, but that requires me to find the right feed name, put in a place for it, and not everyone has a nice feed reader.
Enter the “Subscribe to Comments” plugin for WordPress. You’ve probably seen the little box following the comment box that sends you an e-mail every time there’s a new comment. Well, there’s a lot of goodness behind that little plugin.
20. Improve Your Blog by Offering More Subscription Options
Sometimes giving someone more choices can make one’s life a little more difficult since, by nature, people can become overwhelmed with too many options. However, one area where you want to offer more choices is with how people can receive the content from your blog.
The most common option available to bloggers is the main RSS feed. It allows someone to subscribe to all of the blog’s content via an RSS reader. Great option, but sometimes people don’t want to subscribe to all the blog’s content and would only like to get updates when a specific section is updated.
Using WordPress, it’s simple to give readers an option of subscribing only to a specific category, or even a specific tag by appending the URL with a feed indicator. The indicator will depend on whether you have set up permalinks or not. If you’ve set up permalinks, then all someone needs to add is add /feed/ to the end of the category or tag URL to get its feed. If you haven’t set up permalinks, then someone needs to add &feed=rss2 to the category or tag URL. See the following examples:
Permalinks: http://www.yourblog.com/tag/sky/feed/
Default: http://www.yourblog.com/?cat=2&feed=rss2
In fact, just about anything on WordPress can be turned into a feed by appending the feed indicator to the URL. If you were to append it to your search results, you’d get the search results feed. If you were to add it to an entry’s permalink, you’d get the comments feed for that specific entry.

RSS Feeds
Feed Comment 




Very nice blog. I totally agree with your thoughts.