Thanks for the help, I tried, the results.php page is composed as follows:
global $searchandfilter;
$sf_current_query = $searchandfilter->get(11690)->current_query();
if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()==””)) {
echo ‘<div>Nothing to see here folks!</div>’;
} else {
// the current resuts.php code here
}
?>
<?php
while ($query->have_posts())
{
$query->the_post();
?>
<div class=”farmacia”>
<h2 class=”nome-farmacia”>“><?php the_title(); ?></h2>
<?php the_content(); ?>
</div>
<hr />
<?php
}
?>
If I go to https://www.staging2.biotechmed.it/farmacie/ it shows me all the results… My client does not want that someone can easily see all the results and download all the names.
Another question, is it possible to search only in two specific fields and ignore the others in the search?