Forums Forums Search Search Results for 'results'

Viewing 10 results - 341 through 350 (of 12,388 total)
  • Author
    Search Results
  • #270474

    Trevor
    Participant

    In the browser web developer tools console I can see a JavaScript error, which is causing this. Edit the form, and on the Display results settings tab, check the Results URL. I think you have a double slash before the word ‘roast’ which should be a single slash?

    #270439

    In reply to: Default Results


    Anonymous
    Inactive

    Hi, thanks for answering my question but I did not quite get the code steps.

    1. I created the folder.
    2. I have a copy of the results.php file
    3. How can I now make the following post to be shown as the starting page in my display of results-area?

    https://urban-digital.de/10374-2/


    Trevor
    Participant

    With the current version of our plugins, on any given page you can have only one form controlling just one results widget, sorry. We are making changes for V3, due for release in the New Year (not until after January I think).

    #270393

    In reply to: Default Results


    Trevor
    Participant

    Yes, that is possible. I see that you are using our Shortcode method …

    … in which case you should follow the ‘guide to customising’:

    https://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, like this (leave the PHP comments at the top outside and before this code):

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(10265)->current_query();
    if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()==””)) {
    // code to display the blog post here
    } else {
    // the current resuts.php code here
    }

    #270383

    Anonymous
    Inactive

    Hi all,

    The filter is working great! There’s a minor issue with my site where if I use AJAX and auto submit it works fine on my PC, however, if I’m on a mobile (android device, on chrome) the results appear faded – the results are returning correctly but the fact they’re faded makes it look like they’re still loading.

    Is this an issue that’s known / can be replicated? Is there a way to resolve / is there an upcoming fix?

    Thanks,
    Alwyn

    #270380

    Anonymous
    Inactive

    Hey I would like to customize the content that is being displayed at the very beginning (before using the filter). As for now it shows all entries, but I would like it to show a blog post instead. Is it possible to insert the blog post’s link somehow?

    Thank you!

    website: https://urban-digital.de/kommunale-digitalisierungsstrategien-uebersicht/

    #270369

    Anonymous
    Inactive

    Thanks, but my programmer can’t quite figure out what you meant here. Here’s the code we used to sort the results and it works on other pages but not with your search results.

    add_action( ‘pre_get_posts’, ‘wpse183601_filter_category_query’ );
    function wpse183601_filter_category_query( $query ) {
    if( is_tax() && !is_admin() && $query->is_main_query() ) {
    $query->set( ‘orderby’,’meta_value’ );
    $query->set( ‘meta_key’,’last_name’ );
    $query->set( ‘order’,’ASC’ );
    }
    }

    Can you please let me know how to get the above to work on your results pages? Thank you so much for your help.

    #270366

    Anonymous
    Inactive

    I am using Elementor and Woocommerce and your plugin for combining Elementor with S&F Pro. I am using your plugin to filter products in product categories. What if I want to use the same filter in 10 different product categories? A typical example of this would be a price filter. The plugin is asking me to provide the URL of the results page, but each category has a unique URL.

    Does this mean I have to create a separate filter for each category? This would mean creating 10 identical filters, which is a lot of work.

    #270290

    Anonymous
    Inactive

    Hi, thanks for this great plugin. We’re trying to sort search results alphabetically using a custom field in the post. My programmer wrote some code that sorts them that way on the archive pages, but it’s not working for the search&filter results page. How can we achieve this? Thanks for your help!

    #270246

    Trevor
    Participant

    With regard to speed, setting aside the number of field terms and posts (the more of these there are, the slower things will be), then your server is the thing to look at. Traditional hosting servers are frequently not configured to handle the data requests between the CPU, various caches and the disk drive. This is not a criticism of such hosting, they meet a need for most users. But, when you have large datasets, you may need to consider (potentially) more expensive hosting if you wish/need to avoid the speed/response issues. I am loath to make recommendations, but can, privately, if you wish. There is only one specialist who operate at the very top end of performance though, and, not unexpectedly, they are also not inexpensive. That would be Kinsta.

    Because search results are dynamic, using a CDN for the results pages will also slow the process down, as they will not have a cache of the particular results requested.

Viewing 10 results - 341 through 350 (of 12,388 total)