In header.php file of my WordPress theme, I have the following code to display a different header image for different pages.
<?php
if (is_page(‘about’)) {
$image = ‘image_about.jpg’;
} else if (is_page(‘projects’)) {
$image = ‘image_projects.jpg’;
} else if (is_page(’services’)) {
[...]
Continue reading How to display a different header image for different pages in WordPress
27 May, 2009
Building a real estate website using WordPress
Posted in: PHP, Web Development Blog, WordPress
One of our latest projects at Anansi Web Development was to build a real estate website with a simple CMS. And I thought, rather than building something from the scratch, why don’t we use WordPress as a CMS and add necessary functionalities. And therefore, here are the steps involved in building [...]
Continue reading Building a real estate website using WordPress
26 May, 2009
Highlight the current page link in WordPress
If you are hard-coding your navigation menu in WordPress rather than using wp_list_pages() template tag, you will need to add a class manually in order to highlight the current page it is on.
<li<?php if (is_page(‘gallery’)) : echo ‘ class="current_page_item"’; endif; ?>><a href="gallery/">Gallery</a></li>
Note: wp_list_pages() template tag automatically add current_page_item class to the <li> element [...]
Continue reading Highlight the current page link in WordPress
Template Monster is giving away a Free Easter WordPress Theme and 20% discount on Religious templates.
Continue reading Easter Special: Free WordPress Theme and discounted templates
09 Apr, 2009
Findings from the survey for people who make websites, 2008
Posted in: Web Development Blog, WordPress
Findings from the Survey for people who make websites, 2008 are now available on A List Apart website.
All the findings are very informative and helpful; but the ones that interest me most are:
Job titles where percentages increase with age, until age 65: Accessibility Expert and Information Architect.
While women comprise 16.2% of the [...]
Continue reading Findings from the survey for people who make websites, 2008
Someone emailed and told me that they liked the Recent Posts feature on my blog homepage and would like to know how I did it. Well, it is actually very simple, there is no plugin or widget – all you need to do is add the following snippet to index.php of your WordPress [...]
Continue reading Display 10 recent post titles on homepage
It is not uncommon for a WordPress blog to display a list of all posts in an alphabetical order. I was using <?php wp_get_archives(‘type=postbypost’);?> to display all posts by post title but I couldn’t find a way to sort the post titles in an alphabetical order. After looking at the [...]
Continue reading A list of all posts in an alphabetical order
09 Nov, 2008
15 useful cheat sheets for web developers
The followings are useful cheat sheets for web developers who need to refer to certain syntax and code quickly and easily. They are printer-friendly so you can print them out and stick them on your wall like posters. For those who want a little more than cheat sheets, check our our recommended web [...]
Continue reading 15 useful cheat sheets for web developers
WordPress has launched a new service called Jobs at WordPress, which is a job board for all things WordPress. According to their FAQs, the service is currently in beta and it will be free while in beta. Jobs are categorised into:
General positions
WordPress blogger positions
WordPress design positions and
WordPress programmer positions
There are already a [...]
Continue reading Jobs at WordPress
WordPress has just released WordPress 2.2 (Getz) today. I will be downloading and installing it for my blogs in the next few days.
According to the official announcement, WordPress 2.2 has many new features such as:
WordPress Widgets
Full Atom support
A new Blogger importer
Infinite comment stream
Smart plugin detection
Speed optimizations
WYSIWYG support in a future version [...]
Continue reading WordPress 2.2 (Getz) is released
Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 

