July 20th, 2010

Quick Tip: How to Recover Lost WordPress (Localhost) Password

Quick Tip: How to Recover Lost WordPress (Localhost) Password

If you design and develop WordPress theme, chances are you’ll have a local (localhost) copy in your machine for testing & debugging and preview purposes. Here’s a common mistake some of us may make – we tend to forget our admin password. If you’ve forgotten your password for an online self-host WordPress blog, it’s easy as ...

July 20th, 2010

Display dates as “time ago”, the easy way

Display dates as “time ago”, the easy way

Want to display human readable dates on your blog, such as “Posted 6 days ago?” There’s a lot of available functions to do so, but only a few people know that WordPress have its own built-in function to do that. To display human readable dates on your blog, you have to use the ...

June 29th, 2010

Showing Amount Of Comments A Comment Author Made

Showing Amount Of Comments A Comment Author Made

Little code snippet for showing amount of comment a comment author made. I saw a really cool thing on ProBlogDesign. In the comments there is also the amount of comments the comment authors made. Here is a screenshost. Here is a function you can use to get and echo the number of comments a comment ...

June 29th, 2010

How to automatically create a custom field when a post is published

abstract3

Ever wanted to be able to automatically create a custom field with a value when a post (or page) is created? Then this snippet is for you. Paste the code below into your functions.php file. The only thing you have to do is to edit the cutsom field name on line 6. [code] <pre>add_action('publish_page', 'add_custom_field_automatically'); add_action('publish_post', 'add_custom_field_automatically'); function ...

June 21st, 2010

How to Display Facebook Fan Count in Text

How to Display Facebook Fan Count in Text

Adding a Facebook Like Button on your website or blog is perhaps one of the easiest and most effective way to get more fans and earn more likes. If you have hundreds, thousand or perhaps tens of thousand of fans, it might be a good idea to publish a fan count. Fan count displays in ...

Rss Feed Tweeter button Facebook button Technorati button Reddit button Myspace button Linkedin button Webonews button Delicious button Flickr button Stumbleupon button Newsvine button