The BlogSome Random & Useful Blah blah

Admin avatars not showing up in comments after switching the admin user?

Admin avatars not showing up in comments after switching the admin user?

3rd September 2009 // 2 Comments

Lets say, you posted 5 posts and 3 comments with user admin with the same user. Your email address for this user was x@yoursite.com. Now you read the WordPress admin security article here and decided that you should delete the admin user.

When you’ve done it, everything seems to be fine. Except your avatar is not showing up in the comments you made. Changing the email address of the new user won’t work. Now you have to do a bit of manual work.

WordPress custom fields: Usage and Tips

WordPress custom fields: Usage and Tips

15th August 2009 // No Comments

WordPress allows the authors to attach the extra fields. These custom fields are basically the random data that you don’t to mix with the Post text. For instance you want to add a thumbnail to each post or want to display your Mood at the end of every post. In this tutorial, I am going to show you how can add Custom Fields, and then use it in your Themes. I will also add some examples to make you understand in a more better way.

You can add a custom field when writing a new Page/Post or editing an existing Page/Post. There is a whole section with the name Custom Fields in that Page, look at the image below.

How to remove categories from the_category function in WordPress

How to remove categories from the_category function in WordPress

5th August 2009 // 16 Comments

You might needed this hack if you want to use a single installation of WordPress for multiple sections. the_category() is WordPress Template Tag that displays a link to the category or categories a post belongs to. If you want to eliminate a specific category from the string returned by the_category, you can use the add_filter() to achieve that.

For Instance you don’t want to show the category Uncategorized and Private, in order to do so first put the paste code at the end of your functions.php located in your current theme folder.

Facebook Feeds