-
AuthorSearch Results
-
September 22, 2016 at 9:35 am #59443
In reply to: Access active query
TrevorParticipantIs it possible to use the Shortcode method? That way you can play with the results.php template that we provide. Alternatively, you would need to edit the template file for that post type’s archive page in your theme to add the is_filtered condition.
September 22, 2016 at 9:33 am #59441In reply to: class-search-filter-display-shortcode.php
TrevorParticipantEditing core files is not a good idea, as any updates will overwrite the changes. Are you trying to get the results to match your theme? If so, you should try to use the Shortcode results method, where the results are presented using a template called results.php
Read about this here:
The advantage of doing this is that your copy of the results.php template is not overwritten by any updates of our plugin. And it is relatively easier to modify the HTML structure, content position, content types and CSS elements.
September 21, 2016 at 8:03 pm #59348In reply to: Access active query
TrevorParticipantAh, but in the form, what is the Display Results method set to? if it is shortcode, then the plugin uses our results.php template.
September 21, 2016 at 7:21 pm #59325In reply to: Access active query
TrevorParticipantYou used the is_filtered function in the results.php? And did you make a custom copy of the results.php template file (per our documentation)?
September 21, 2016 at 6:58 pm #59300In reply to: Different Results.php
AnonymousInactiveI have dirty solution to this by checking page id and putting if statement inside results.php, it works ok but would prefer to do it as instructed in documentation.
September 21, 2016 at 6:55 pm #59298In reply to: Different Results.php
AnonymousInactivedon’t know if its worth mentioning but I’ve tried with results.php along id.php and using only id.php for each form, in my case 16280 and 16284 respectfully.
cheers
September 21, 2016 at 6:41 pm #59288In reply to: Different Results.php
TrevorParticipantCan you show me the page with the search on? What did you do (editing) to make the 16284.php file different?
September 21, 2016 at 11:46 am #59211In reply to: No default display settings
TrevorParticipantWhat you should have done is detailed here:
and made your own theme copy.
In the results.php that you have modified, you have this line:
if(count($_GET) > 0) {
followed by the loop. This means, if there is no URL parameter, do not show results, basically, the issue you are having was created by this line you have added.September 21, 2016 at 11:43 am #59209In reply to: No default display settings
TrevorParticipantIgnore that. You have modified our results.php?
September 21, 2016 at 10:37 am #59179In reply to: No default display settings
AnonymousInactiveSearch result is absolutely perfect. Total count of India is 6, but result shown is 5 as because it checks all the field like duration, price and if some field is missed to entered in activities section, it does not show. Thats perfectly correct.
.search-results-wrap : same class is used.
So do I have to add custom query in results.php for default listing ?
-
AuthorSearch Results