Month: December 2010

  • Using stripslashes() with Theme Options

    Using stripslashes() with Theme Options

    by

    **Update:** This is not the right way to do this. Use WordPress functions to sanitize data. April 27, 2012 While I might be showing a bit about my PHP naivety but while working with theme options recently I found that some of my content had a just before a single quote. Now I knew it…

    Read More →

  • Limiting WordPress Search to Custom Post Types

    Limiting WordPress Search to Custom Post Types

    by

    I have now written a more extensive article on WordPress search at [WP Theme Tutorial][search]. While working with custom post types I’ve found the need a few times to search only within the custom post type. A great example would be on a list of community resources. On the resources page it would make sense…

    Read More →

  • WordPress Menu UI

    by

    Today we’ve just got a quick comment on how I think the WordPress menu UI could be improved. [podcast format=”video”]http://blip.tv/file/get/Curtismchale-CommentOnTheWordPressMenuUI686.mov[/podcast]

    Read More →

  • Conditional Tags for Custom Taxonomies in WordPress

    Conditional Tags for Custom Taxonomies in WordPress

    by

    WordPress 3.0 gave us custom taxonomies and since we’re using them regularly we’re also getting into conditional tags with our custom taxonomies. Conditional tags for taxonomies differ from conditional tags for regular categories or tags. Below is an example of using a conditional tag for the standard ‘misc’ category found in WordPress. [php] if( is_category(…

    Read More →