Another WordPress Development Blog

Wordpress Tips and Tricks

Add a subtitle under the post title Add a subtitle under the post title
3 Nov 2010 | No Comment

Many publishers chose to add a subtitle under the main title. This is useful when you want to reveal the article subject or to give an additional explanation that will make the readers go to the full post page.

Automatically insert Adsense code in old posts. Automatically insert Adsense code in old posts.
2 Nov 2010 | No Comment

There are many situations when old blogs with tons of posts and traffic are not monetized at all. At one point the owner may decide to publish ads(or some other commercial stuff) inside posts. But how ? Editing 300+ posts to manually insert ads is not really a solution if you are an individual.

Random posts in WordPress Random posts in WordPress
1 Nov 2010 | No Comment

Here is a simple trick for a busy Monday.
When you want to get a random post displayed on your first page you just need to copy paste this code:

Moving Kubrick gradient into other wordpress themes Moving Kubrick gradient into other wordpress themes
28 Oct 2010 | One Comment

Today’s recipe is a little more complicated than the usual ones and it will be in two parts. I will show you how you can “move” the header gradient generator from good old Kubrick theme into any other theme.

Static content on a wordpress home page
27 Oct 2010 | No Comment

If you are building a custom home page for your wordpress blog you may need to display a static piece of content. For example you need an ‘About us’ text that will sit around the latest ten excerpts. Of course, you can do this by directly editing the index.php but what happens if this content [...]

Adding content in footer/header without changing theme files
26 Oct 2010 | No Comment

There are many cases when you need to add pieces of code or display certain information in your wordpress footer. You may want to install the analytics tracking code or any other javascript. You can do this by editing the footer.php file but sometimes you may want to add new things without changing theme files. [...]

Share on Facebook code for WordPress
25 Oct 2010 | No Comment

Since Facebook.com is the biggest and most used social media site you may want to give visitors the option to share your posts with their friends. In this case a “share on facebook” link becomes mandatory for any serious blog. The things you need to do are not complicated.. Facebook is helping you by providing [...]

Update_option/get_option and PHP serialize
24 Oct 2010 | No Comment

When doing research for a new magazine theme I’m building I encountered an interested subject. I have a lot of “design options” that need to be saved into database. Since I don’t want to save them separately as options (I will have 20+ calls to database) I planned to serialize the options array and store [...]

Creating image thumbs in wordpress
22 Oct 2010 | No Comment

If you want to create thumbs for pictures and if you are not familiar with php it can be very tricky. But that doesn’t mean you cannot achieve your goals. Just download timthumb script, install it and use it everywhere you need a thumb created. Installation is very simple: download it and then upload into [...]