Search Results for 'results.php'

Forums › Forums › Search › Search Results for 'results.php'

Viewing 10 results – 1,271 through 1,280 (of 1,344 total)
  • Author
    Search Results
  • #15247

    In reply to: Invisible Ajax results


    Anonymous
    Inactive

    I’ve resolved the issue by adjusting CSS of results.php : it was calling some function of the theme to define CSS classes, and I think it was not working when ajaxed.

    However I DO have a pb of JS : as below, on page load, no pb : some JS is called and create a nice masonry grid.

    But when ajaxing the results, the grid is not looking good. I’ve checked console, but I don’t know what to look at.. One thing is true : when I disable JS, the load page has the same mess, so definitely some JS is not loading in ajax results.

    Any idea ? 😀

    #15215

    Anonymous
    Inactive

    Thanks, I’m using the shortcode method and have removed the query but it’s telling me there are no results.
    I set up a new results.php within a search-filter folder as the docs said and added my custom post type fields and markup inside the loop but it’s not finding them.

    #15156

    Anonymous
    Inactive

    This needs to be nothing less than completely overwritable, either using hooks or a template override file.

    I’ve made a custom layout by modifying results.php, and will have to modify this plugin in several other places to achieve what I need. It’s still the best one available, but in general I think all plugins need to allow for people to completely override and change their layouts – this is what will make them usable in more scenarios.

    #14131

    Anonymous
    Inactive

    Yep, it’s actually pretty easy to do also……

    Create a folder IN your WP Theme folder and name it /search-filter

    Then start with any template (e.g. results.php) and name it for the search filter you’ve created. For example, in your search and filter shortcode, it gives you a form ID, such as “102”, so name your template page “102.php” and put it in that new folder and upload it.

    S&P will use your new template file to display your results.


    Anonymous
    Inactive

    I want to customize the results.php file and keep it safe from updates… so, it’s possible to use some kind of “child theme” or something similar?

    In fact would be GREAAAAT to have options to customize the results trough plugin options screen/back-end in the next updates.

    Anyway… how I create a “child theme” for Search & Filter PRO?

    Thanks! 😀

    #13877
    #13803

    Ross
    Keymaster

    It sounds fine, if its not working then I’d double check whether your ID is definitely correct.

    This is how I have my results.php setup and was working fine:

    https://www.designsandcode.com/wp-content/uploads/2015/03/results.zip

    Although this was just for testing, I think the function should go in functions.php of your theme.

    *EDIT* – after thought – if we are loading results via wp-admin/admin-ajax.php – then maybe this doesn’t load your theme, and therefor not the function either – I’m not sure on this haven’t had time to test.

    Either way, I’ll be integrating some functions in to the plugin at some point that will handle all this automatically.

    Thanks

    #13690

    In reply to: Pagination


    Ross
    Keymaster

    Ah I see

    You will find that with the shortcode method, it is creating a custom loop – which doesn’t work out of the box with most pagination, normally there are one or two additional steps to make pagination work with custom queries, but this depends on how you are implementing this.

    The sample results.php template has the code in it for the wp_page_navi plugin so if its enabled it should just display.

    Thanks

    #13623

    Anonymous
    Inactive

    Hi Ross,

    Thanks! I took a look at the tutorial, and indeed my setup does follow these steps.

    I did as you asked and set up a non-ajax link here:

    http://www3.calvaryem.org/media/sermons-archive/results/page/2/?_sfm_is_this_a_sunday_school=0

    The filter seems to work fine without ajax…but comparing the source code of both, it seems like the header is all missing, which says to me that the custom results.php is indeed being used, but the custom results URL is not.

    I checked both the URL in the SF menu, as well as the shortcode in my results page, and both are correct (used copy/paste to set both, so can’t be any errors).

    Any ideas? Maybe the shortcode for some reason isn’t working?

    #13480

    In reply to: Grid


    Anonymous
    Inactive

    Thanks for your reply 🙂

    I find it quite difficult to make this grid template. Do you have a example results.php grid page that works?

    Thanks!

Viewing 10 results – 1,271 through 1,280 (of 1,344 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.