Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 901 through 910 (of 1,224 total)
  • Author
    Search Results
  • #59443

    In reply to: Access active query


    Trevor
    Participant

    Is 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.

    #59441

    Trevor
    Participant

    Editing 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:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results

    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.

    #59348

    In reply to: Access active query


    Trevor
    Participant

    Ah, but in the form, what is the Display Results method set to? if it is shortcode, then the plugin uses our results.php template.

    #59325

    In reply to: Access active query


    Trevor
    Participant

    You 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)?

    #59300

    In reply to: Different Results.php


    Anonymous
    Inactive

    I 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.

    #59298

    In reply to: Different Results.php


    Anonymous
    Inactive

    don’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

    #59288

    In reply to: Different Results.php


    Trevor
    Participant

    Can you show me the page with the search on? What did you do (editing) to make the 16284.php file different?

    #59211

    Trevor
    Participant

    What you should have done is detailed here:

    https://www.designsandcode.com/documentation/search-filter-pro/search-results/using-a-shortcode/#Customising_the_Results

    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.

    #59209

    Trevor
    Participant

    Ignore that. You have modified our results.php?

    #59179

    Anonymous
    Inactive

    Search 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 ?

Viewing 10 results - 901 through 910 (of 1,224 total)