Categories
Code WordPress

WordPress: Exclude Pages from Search Results

Add the following to your functions.php file to exclude pages from the search results of your WordPress blog.

//Filter out pages from search results
function search_exclude_pages($query) {
 if ($query->is_search) {
 $query->set('post_type', 'post');
 }
 return $query;
}
add_filter('pre_get_posts','search_exclude_pages');
Categories
Code WordPress

WordPress: Change the Excerpt Length

The following can be added to your theme’s functions.php to alter the excerpt word count.

//Filter the excerpt
function new_excerpt_length($length) {
 return 20;
}
add_filter('excerpt_length', 'new_excerpt_length');
Categories
News WordPress

Tablet Magazine – Honoree at 14th Annual Webby Awards

On of my projects gets a little recognition. It’s always nice to see the fruits of your labor!

“Of the over 8000 entries submitted to the 14th Annual Webby Awards, fewer than 15% were distinguished as an Official Honoree. This honor signifies an outstanding caliber of work. Congratulations to all of our Official Honoree selections!”

Webby Awards Website

Read more about my work with Tablet Magazine