You can show number of your Twitter followers by using this function. If you are a WordPress user, simply copy and paste it into the functions.php file. Call the function like: That’s it. Now you can brag with your popular Twitter account
WordPress
Ultimate Google Fonts with beautiful CSS3 effects
This plugin allows easy implementation of Google fonts. Unlike Cufon, the text using Google fonts is selectable. All fonts in the directory are available for use on your website under an open source license and are served by Google servers. Latest version 1.1.0 Download the latest version Features Choose from more than 90 fonts Load [...]
Display comments on index page
This is a code snippet that allows you to display comments below each post on index pages or any other archive page. Just paste it in the loop in the appropriate file (index.php, archive.php etc).
All-In-One Slideshow
All-In-One Slideshow plugin implements jCycle, Easing and Cufon scripts into the highly customizable slideshow gallery. You can combine 27 transition and 8 easing effects! The plugin comes with a package of 8 cufon fonts. This plugin is based on Nathan Rice’s WP_Cycle plugin. Latest version 1.3.2 Download the latest version Since version 1.3.0 I added [...]
Hacking Contact form 7 – add onFocus and onBlur function
There is a great WordPress plugin Contact form 7. It has a lot of customizable features that make my clients life easier. I missed support of onFocus and onBlur functions; click on the input field and the default value disapears. This is a simple jQuery script that does what I needed: Here is a small [...]
How to add field to user profile page
Justin Tadlock published a piece of code I needed recently. This snippet allows you to add any fields to the user’s profile page. Just copy and paste the code in to the functions.php.
How to get user info
This function allows you to get info about any user: if you want to find out if the user is admin do it like this: This is useful when you want to get info about the current user:
How to add author’s gravatar to the post
There are two ways of how to do it. The first one is adding real gravatar based on the author’s email. This will display gravatar with size 80 pixels. The second is adding our custom image based on the original author’s ID:
Does the page have subpages?
That’s the question. You can find out if a page has child pages with this if – else statement:
Display recent comments with avatar
From time to time clients ask me implement recent posts. But how about displaying recent comments? And even add gravatar? Here is a code that displays eight recent comments with avatar image.