Theme Development archive

How (and why) to use Schema.org on your WordPress website

Search engines have a big problem. There is so much data out there and it’s hard to work out what is what. Humans are great at inferring the context of web content, but this is much more difficult for Google, Bing, Yahoo!, etc.. That’s why the biggest search engines have come together to create a […]

Tags: , , , ,

Add links to WordPress custom excerpts

By default custom excerpts don’t have a ‘read more’ link of any kind. I wanted my custom excerpts to look the same as my dynamically generated ones. It’s a simple code change:

Tags: ,

Addison Lee Communications

Addison Lee is London’s biggest minicab company and a well known brand in London. They approached me to build them an internal communications website. The website is used to share images and documents for internal and external press releases and communications.

Tags: , , ,

Beginner WordPress Theme Development

Last Thursday (28th July 2011) we held the third London WordPress meetup. The meetup is for WordPress users and professionals in London and aims to provide a networking and learning platform. I gave a talk on Beginner WordPress Theme Development, which introduced the basic structure of a theme and some key concepts. Here are the […]

Tags: , , , , , , ,

Spinning Update progress on WordPress pages

Spinning Progress Wheel One of my clients recently informed me that a site that I had built had a problem; when some pages were published or updated, the progress wheel would spin until the browser eventually timed out. It had been a month or so since I had finished the site development and there had […]

Tags: , , , ,

Custom Post Type Archive Pages – WordPress

Need to show your custom post types on your category archive pages? Add this to your functions.php file: add_filter(‘pre_get_posts’, ‘query_post_type’); function query_post_type($query) { if(is_category() || is_tag()) { $post_type = get_query_var(‘post_type’); if($post_type) $post_type = $post_type; else $post_type = array(‘post’,’cpt’); // replace cpt to your custom post type $query->set(‘post_type’,$post_type); return $query; } } Now change the variable […]

Tags: , , , , ,

Cufon visited link color fix

I recently had an issue with the color of visited links when using Cufon. More specifically, I am using the WP-Cufon plugin with WordPress. The issue I had was that the color I set for the link wasn’t being rendered by Cufon. In firebug it showed that the element color was red, but it was showing […]

Tags: , , , ,

Adding the excerpt function to WordPress pages

The excerpt function that is so useful in WordPress posts, does not come as standard on pages. Luckily, the fix is easy. Add the following code to your functions.php file and voila! Excerpts on wordpress pages. // add excerpts to pages function add_page_excerpt_meta_box() { add_meta_box( ‘postexcerpt’, __(‘Excerpt’), ‘post_excerpt_meta_box’, ‘page’, ‘normal’, ‘core’ ); } add_action( ‘admin_menu’, […]

Tags: , , ,