WordPress Users and Site Updates

I just released version 1.1 of WordPress Users. If you are upgrading from a previous version, please check your settings, as they have changed. Avatar and user description display are now optional, so you must enable them for them to show up. Also, user description character limit can now be changed, so check that setting as well.

I just implemented open registration on this site. You should be able to login or register from the sidebar. I also launched Kempwire Forums. The forums are mainly for support of my WordPress plugins, and the site registration is mainly for the forums. If you register on the site, you can use the same login for the forum and vice versa.

Update: the forums have been taken offline for the foreseeable future.

For support of plugins, I am leaving comments open on the plugin pages for now, but I appreciate it if all discussion will be added to the forums. Please let me know if you have any questions. Thanks!

Add Threaded Comments to Your Theme in WordPress 2.7

One of the improvements added in WordPress 2.7 was official support for threaded comments. Previously, this functionality was only available through plugins. But now that threaded comments are available, you need to make sure that your theme is compatible.

To do this, you need to add a couple of things to your theme. First open up header.php in your theme, and add this line in between the head tags, preferably right before the wp_head function.

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

This adds the javascript required for threaded comments to any page or post where you have comments enabled, but not on the index or archive pages.

Next open up comments.php in your theme and make sure this code is in there.

<ol class="commentlist">
<?php wp_list_comments(); ?>
</ol>

This code should replace your comments loop. To see an example of this, see comments.php in the default theme in 2.7. Once this is done, you need to activate threaded comments. Go to “Discussion” under “Settings” in your WordPress admin, and check the box that says “enable threaded comments.”

Another important step is the CSS. You need to style your comments properly for the threaded comments to be as functional as possible. For an example, again check out the CSS from the default theme in 2.7. You also need to be aware of how many levels your comments will be nested in your CSS. WordPress allows you to set this in your backend. The default is 5. With those steps, you should be good to go.

The wp_list_comments is an important function for other reasons. It also gives you the ability to sort comments, add gravatars, add CSS hooks for even and odd comments and author comments. So even if you don’t want threaded comments, it is an important function to have in your theme, especially if you are developing themes for public release.

Update: It turns out following the instructions above didn’t work for me. You still need the js file in your header, but there are more changes to comments.php than I thought. The easiest thing to do is to just copy the comments.php file from the default theme in 2.7 to your theme and modify that file to your liking. This finally got threaded comments working for me.

Updated Ultimate Noindex Nofollow Tool

The Ultimate Noindex Nofollow Tool lets you add the “noindex” robots meta tag to archives, categories, search pages, tags, author pages, login, admin pages or any other page you choose. Also, you can add the rel=”nofollow” tag to archive links or category links.

The latest version gives you the ability to add rel=”nofollow” to any page link from the wp_list_pages function or Pages widget.

The Ultimate Noindex Nofollow Tool is here, and you can download the Ultimate Noindex Nofollow Tool here. I hope you find it useful. Let me know of any problems or questions.

The Ultimate Noindex Nofollow Tool for WordPress

It seems I’m really into writing WordPress plugins lately. I’m also into WordPress SEO. My latest plugin combines the functionality of some of the previous SEO plugins I wrote, plus some new functionality of its own.

It’s called the Ultimate Noindex Nofollow Tool. It combines the Nofollow Archives, Nofollow Categories and the Noindex Login plugins. You can now add the “noindex” robots meta tag to archives, categories, search pages, tags, author pages, login, admin pages or any other page you choose. Also, you can add the rel=”nofollow” tag to archive links or category links. The next version, which I am working on now, will have the ability to add rel=”nofollow” to any page link from the wp_list_pages function.

If you care about WordPress SEO, you should be using this plugin or a similar one. I’m working on a WordPress SEO post, where I will detail what you should do and how you can use this plugin to improve your WordPress SEO.

The Ultimate Noindex Nofollow Tool is here, and you can download the Ultimate Noindex Nofollow Tool here. I hope you find it useful. Let me know of any problems or questions.

Add a User Directory to Your WordPress Site

I’ve recently been experimenting with community on WordPress, and I wanted to enable user registration on a WordPress site. This was easy enough, but once a user has registered there is no easy way for them to interact with the site, other than the way they normally would.

With WordPress, you can display authors in your sidebar, but there is not really a way to display profiles for registered users. So I ended up writing another plugin to handle this. The WordPress Users plugin creates a directory of user profiles on any page you specify on your site. Each user gets their own profile page that displays the date they joined and recent comments. It has support for Gravatars and permalinks. User links are nofollowed. You can also tell search engines to noindex, follow the directory pages. Also, there are plenty of hooks to style it yourself with your theme CSS file.

The WordPress Users page is here, and you can download the WordPress Users plugin here. I hope you find it useful. Let me know of any problems or questions.

Turn Off Comment Pagination in WordPress

I recently noticed that I was having an issue with WordPress creating duplicate url’s that were being indexed by Google. Duplicate url’s in search engine results is what is known as duplicate content, which can penalize you in search engines. The url’s were being formatted like this.

http://www.example.com/pagename/comment-page-1/

Here is the original url.

http://www.example.com/pagename/

Both of these url’s were being indexed by Google. I immediately recognized that this could cause a problem with duplicate content, since the content of those pages are exactly the same. Searching my site, I noticed these url’s were being linked to from the Recent Comment widget in the sidebar.

A new feature in WordPress 2.7 is the pagination of comments. I’m not sure if this is turned on by default or not. Checking my options, I saw that this was turned on. Turning it off solved the problem. The widget now links to the normal url’s. The remaining issue is that duplicate url’s are now in the search results. To get rid of them, I added a line to my robots.txt file preventing them from being indexed. Within a few weeks, those duplicate url’s should be gone.

So if you are using WordPress 2.7, you should check your search engine results for these duplicate url’s. If it’s a problem, turning off comment pagination should fix it.

Nofollowing Your Categories in WordPress

I recently wrote a plugin to add the “nofollow” rel attribute to archive links in WordPress. I had a request to write a plugin that does the same thing for categories in WordPress, so I created one. This plugin allows you to display category links in your theme without giving them any pagerank value.

The Nofollow Categories page is here, and you can download the plugin here. I don’t recommend using them both at the same time. My recommendation is to use one or the other. You want to give pagerank to one or the other, but not both.

Remove Unwanted Tags From Your WordPress Header

The function wp_head; found in the header.php template file adds unnecessary tags to your WordPress template. These tags are the RSD, or Really Simple Discovery, link, the Windows Live Writer Link and the WordPress version number. I wanted to add this important function to my themes, but I don’t want those tags that WordPress adds by default.

So I created another WordPress plugin to strip these tags out. This plugin will stop all 3 tags from being automatically added to your WordPress header. The WordPress Head Cleaner page is here, and you can download the plugin here.

Nofollowing Your Archives in WordPress

I recently wrote my first WordPress plugin. I was looking for a way to add the “nofollow” rel attribute to archive links in WordPress. I needed to be able to use them in my theme without giving them any pagerank value.

I found that the best way to do it was to create a plugin so that I wouldn’t have to modify the core files. Any way the Nofollow Archives page is here, and you can download the plugin here.