Replies: 0
Hi there,
I have been editing the functions.php with the following code in order to customize the research of WordPress according to my tastes:
if ( !is_admin() ) {
function searchfilter($query) {
if ($query->is_search && !is_admin() ) {
$query->set(‘post_type’,array(‘store’,’coupon’));
}
return $query;
}
add_filter(‘pre_get_posts’,’searchfilter’);
}
now the problem is that as I am using a composer plugin to build pages every snippet in the results comes with a jquery code. I have tried by CSS to add a display none feature but doing so also the title hides so I can see just images.
Do you have any hint in order to show only the title in the research without excerpt that shows jqurey code?
Please help me! 🙁
here a sample of a search on my site:
http://www.clubaffari.it/?s=ristorante+trapani&post_type=post