Do you remember when I shown you How to get the first link from the post content? Today, I’m going to let you know how you can easily grab first image from the post and display thumbs on your blog homepage.
If you plan to move a WordPress site to a new domain and you don't want lose any hits from the old domain. Here is a good 301 redirect tip to do it. Using 301 redirect for forwarding one domain to another is very useful,because 301 redirect is considered as a permanent redirect.This method is also a good way to let GoogleBot to know that the domain has been moved permanently from oldsite.com to newsite.com.
Printing webpages is common for many internet user. If you’re interested in adding a “Print this” button to your WordPress posts, just read this artical, which can help you to do it.
Displaying post content in columns is one of the most wanted WordPress hacks. In this artical, for those of you who want a simple but limited approach (not using a plug-in), here’s the code for multiple columns within a page. You’ll learn how to easily do it without any plugin.
By default, WordPress does not add a rel=”nofollow” attribute to external links within post content automatically. If you want to do it, here is a simple snippet to force WordPress to add the rel=”nofollow” attribute to every external link in the content.
Custom post types in WordPress allows you to hold and display many different types of content. Here’s a super useful code for those who frequently work with custom post types: check if the current post is a custom post type function.
QR codes store your digital information with image format,and QR Codes are quite popular online,many people are showing the QR code image on there website. Do you want to generate QR codes for all of your blog posts?.Here’s a very little snippet to do it.
For a wordpress theme designer, you need to insert the ID of a category, post, page, etc. in order get them working as you want.There is a way to find the IDs you’re looking for.
Have you ever considered to get a total control over the way your adsenses ads are displayed? Today, I’m going to teach you how to use adsense only in the post you want and display the ads where you want. In the following code snippet,you have to add it to your functions.php file. Don’t forget to change the adsense code wit your own ads code.
Maybe it will be useful to automatically disable commenting on posts older than X days. There’s no built-in function in WordPress to do that, but if you want to do that, just read this code snippet.