function searchfilter($query) { if ($query->is_search && !is_admin() ) { $query->set('post_type',array('product')); $query->set('posts_per_page',25); } return $query; } add_filter('pre_get_posts','searchfilter');

Log In

Powered by WordPress

← Go to Froggers House of Cards