A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Monthly Archives: July 2012

WordPress: Custom post filters for Search

If you want to customize the query when doing a search in WordPress – when meta_queries are not enough. The custom “WHERE” part of the query function custom_where($where,$query) { global $wpdb;   $new_where = " /*my new where*/ $wpdb->postmeta.meta_value LIKE … Continue reading

Posted in Uncategorized | Leave a comment