Web design
March 4 2009

Show Siblings or Children of a Wordpress Page

A useful code snippet I thought I’d share

<div id="subpages">
<h3>Related Pages</h3>
<?php
// If CHILD_OF is not NULL, then this page has a parent
// Therefore, list siblings i.e. subpages of this page's parent
if($post->post_parent){
    wp_list_pages('title_li=&include='.$post->post_parent);
    wp_list_pages('title_li=&child_of='.$post->post_parent);
    }
// If CHILD_OF is zero, this is a top level page, so list subpages only.
else{
    wp_list_pages('title_li=&include='.$post->ID);
    wp_list_pages('title_li=&child_of='.$post->ID);
    }
?>
</div>
February 6 2009

Free Font Friday: Hydrophilia

Comments Off

Hydrophilia Read More »

February 1 2009

Generating a Random Integer with PHP

Read More »

January 18 2009

Acid Rain: A New Wordpress Theme

Download

Demo

January 11 2009

What Does Web Design Cost?

A common question, also known as ‘how long is a piece of string?’ Several times every week I receive enquiries from prospective customers simply asking what my prices are. No specification, feature requests or style influences from their side, just one simple question for me to go on. This article should shed some light on the factors that influence the all-important quotation. Read More »

January 7 2009

The Ultimate List Of Places To Submit Your Wordpress Theme

I’m been on a binge of producing Wordpress themes over the last few weeks and need to find places to show them off. If you are also looking for good places to submit your Wordpress theme, try these websites. Read More »

January 2 2009

Free Font Friday: ATF Antique

ATF Antique Read More »

December 31 2008

Happy New Year 2009

“I’d like to take this opportunity to thank all of my clients, past and present, for a superb 2008. I wish you all a happy, healthy and prosperous new year.”

- Mathew