Web design

Monthly Archives: March 2009

March 26 2009

Reducing Code Bloat for SEO

A problem with some of the ‘usual suspects’ in e-commerce website development is the code. Not that it doesn’t work – everything is as it should be – but there’s so much code that you risk harming your SEO strategy without doing something about it. Here are some simple tactics I’ve employed for recent Cubecart websites

Continue reading this article »

March 6 2009

Free Font Friday: Zeroes

Zeroes Continue reading this article »

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>