WordPress

  • 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…

    Read More

  • WordPress $is_iphone global

    OK, why did nobody tell me about this, and why is it not documented! I just found out today that WordPress does some browser detection of its own. I’ve previously relied on other code libraries for this, but maybe now I can use the ‘WordPress Way’. Detecting mobile in WordPress using $is_iphone In wp-includes/vars.php there…

    Read More

  • The Tools of the (WordPress Freelance Development) Trade

    I’ve been freelancing for a while now. I’ve also been developing WordPress sites for a while. In that time I’ve used many different tools. Some have been great, and some less great. Here I share a list of the tools that I’m currently using: Accounting I use the excellent FreeAgent* to keep track of my…

    Read More

  • WordPress Security

    Since I listened to Kieran O’Shea’s talk at WordCampUK, I’ve been taking security much more seriously. Kieran had some pretty scary statistics regarding hacking. For example, 90% of all businesses have been hacking victims in the last 12 months, and, there is an average of 156 days before victims realise that hacking has taken place.…

    Read More

  • Custom Post Types

    Last night I gave a presentation at the WordPress London meetup. I talked about custom post types in WordPress, something that has really excited me since WordPress 3. I’ve included the video, a rough transcript of the presentation and the slides at the bottom. What we’ll cover What are custom post types When to use…

    Read More

  • WordPress London meetup #5

    The group continues to go from strength to strength with at least 30 members attending. This month’s meetup included a talk from BuddyPress developer Paul Gibbs. He talks us through the new release, the epic version 1.5. Paul’s blog post, with slides, can be found here: http://byotos.com/2011/09/27/buddypress-at-wordpress-london-220911/. Then Jeff Ghazally shows us how easy it us…

    Read More

  • 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…

    Read More

  • 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…

    Read More

  • Internal Link Layout Issue

    I recently came across an unusual problem when using internal links on a WordPress site. The link in question linked from one page on the site to a specific section on another page of the same site. When this link was followed there was an error with the page layout. More accurately, the new page…

    Read More

  • 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…

    Read More

  • WordPress Custom Post Templates

    Once you have built a Wordpres custom post, you will often want to style it using it’s own template. I searhed the web for a solution and courtesy of twothirdsdesign, if found the answer. The template used for a custom post view is decided by the ‘get_single_template()’ function in the wp-includes/theme.php file.  And it basically…

    Read More