-
AuthorSearch Results
-
July 18, 2018 at 1:10 pm #182826
In reply to: Search issue Geodirectory.
TrevorParticipantDoes this happen if you use a standard results.php file and Ajax ON and Infinite Scroll not on?
July 16, 2018 at 10:33 am #182597
TrevorParticipantHi Kellie
You would need to be using our Shortcode Display results method, and have followed the guide to customising:
https://support.searchandfilter.com/documentation/search-results/using-a-shortcode/
Once you have a copy of the results.php file in a search-filter sub-folder of your theme, you can edit that file. Looks for these lines:
<p><?php the_category(); ?></p> <p><?php the_tags(); ?></p> <p><small><?php the_date(); ?></small></p>Simply deleting each of these lines in turn would remove the display of the categories, tags and post date.
July 11, 2018 at 2:39 pm #182325Topic: Custom Sort and Order
in forum Search & Filter Pro
AnonymousInactiveIs there a way to customize how the posts are sorted and ordered?
I’m thinking I can use $query->set in the results.php page but wanted to clarify with you.
Thanks.
July 6, 2018 at 10:51 am #182051In reply to: Custom No Results messaging
TrevorParticipantFor most Display Results method, this is handled by your theme. For the Shortcode Display Results method, this is inside the results.php template, and to customise that, see this documentation page:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/
July 5, 2018 at 3:28 pm #182020In reply to: Hide all results before a search query is made
AnonymousInactiveYes Trevor, I have copied the file. But I have no idea how to start customizing the CSS on the results page since there are no element IDs from what I could see. How can I go about coding for this? Do you have any sample code for results.php that I could start with?
July 5, 2018 at 3:08 pm #182014In reply to: Hide all results before a search query is made
TrevorParticipantYou would need to be using our Shortcode Display results method, and have followed the guide to customising:
Once you have a copy of the results.php file in a
search-filtersub-folder of your theme, you can edit that file, like this (leave the PHP comments at the top outside and before this code):global $searchandfilter; $sf_current_query = $searchandfilter->get(1024)->current_query(); if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) { echo '<div>Nothing to see here folks!</div>'; } else { // the results.php PHP code here }Make sure you change the ID number in that snippet to the ID number of your form.
July 4, 2018 at 12:30 pm #181943Topic: Hide all results before a search query is made
in forum Search & Filter Pro
AnonymousInactiveHi Trevor,
I hope you’ve been keeping well. I’m trying to implement your plugin on another site. This time I need to do a simple search. I’m using the custom method and with action=”filter_next_query”.
I want to hide the search results before a query is made. I followed your previous method and modified the results.php but that works only for shortcode method. Can we do the same for custom method?
July 3, 2018 at 5:39 pm #181874
TrevorParticipantI see that this is set to Shortcode Display results method and uses Infinite scroll. Did you customise the results.php file and if so, what are the contents of that file (if you post the contents here, use code back ticks – one before and one after the code)?
July 1, 2018 at 6:35 am #181690In reply to: How to keep formatting of quotes?
TrevorParticipantHi
Sorry I was out of the office on Friday so I am catching up over the weekend. You need to have followed the ‘Customising the Results’ on this documentation page.
https://searchandfilter.com/documentation/search-results/using-a-shortcode/
In the results.php file is this line:
<p><br /><?php the_excerpt(); ?></p>The excerpt strips all formatting away. The only way to keep links, formatting etc. is to replace that code with something like this:
<div class="entry-content"><?php the_content();?></div>June 28, 2018 at 6:04 pm #181556In reply to: Custom Template
TrevorParticipantIt might be easier to use our Shortcode Display results method, copy the results.php file as instructed to your child theme folder, find the bit in that code that matches your ‘while’ loop and replace our code with yours (not all of yours will be needed):
https://searchandfilter.com/documentation/search-results/using-a-shortcode/
-
AuthorSearch Results
Search Results for 'results.php'
-
Search Results
-
Topic: Custom Sort and Order
Is there a way to customize how the posts are sorted and ordered?
I’m thinking I can use $query->set in the results.php page but wanted to clarify with you.
Thanks.