Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro No default display settings

Tagged: , ,

Viewing 9 posts - 1 through 9 (of 9 total)
  • Pravash Karki
    #59148

    There is no settings for default section. I did not find any setting for that. Do I need to add custom-query for showing results by default?

    Search page : acethe.server261.com/find-trip

    [Login details redacted by @trevorsf for privacy and added to a private note for moderators to see only.]

    Trevor Moderator
    #59156

    Hi Pravash

    I am not sure what it is you want. Do you want to hide all results until a search is made?

    Pravash Karki
    #59160

    Hi,

    I want to show some posts by default even when I don’t choose any option from search menu. When I choose any option, it works fine, no worries. But firstly, when I just go to that page, there are no results shown even when all destinations, all activities are chosen in search menu side.

    Does it clear now?

    Thanks.

    Trevor Moderator
    #59163

    Can you try changing the target container to .search-results-wrap

    There also appears to be something odd, as some selections show 1 less result than the count (e.g. Bhutan count is 6 and it shows 5)?

    Pravash Karki
    #59179

    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 ?

    Trevor Moderator
    #59197

    Hi

    I think this is a hand made theme, yes? I do not think that you can use the shortcode for the results. Instead. Re-make the template to show all the posts as you would a normal template. You will have in that a section defining the array of args for query_posts($args);. You add an extra argument to this array (make sure each row has a comma at the end except the last argument), and the row to add our filter would be:

    'search_filter_id' => 8687,

    Trevor Moderator
    #59209

    Ignore that. You have modified our results.php?

    Trevor Moderator
    #59211

    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.

    Pravash Karki
    #59222

    Thanks for all support. Will try and reply you.

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘No default display settings’ is closed to new replies.