Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 101 through 110 (of 1,224 total)
  • Author
    Search Results
  • #256075

    Trevor
    Participant

    To modify the output of the results.php template file (I have done this for myself on projects, and even some using Avada), I have examined the output HTML on a sample page and reverse engineered that into a combination of HTML and PHP for a custom template. For Avada, it used to typically take 4-8 hours to do though.

    An alternative solution (and what I now do if I am having to use Avada) is to use a plugin that works in a similar way to our shortcode method:

    https://searchandfilter.com/documentation/3rd-party/post-grid/

    In the Post Grid plugin, you determine the number of columns by using the post width setting.


    Anonymous
    Inactive

    I’m using Oxygen site builder which doesn’t use WP’s traditional theming system. So I can’t use child theme to customise my search results. Right now I’m using the core template file (wp-content/plugins/search-filter-pro/templates/results.php) to make changes but it seems I’m not able to customise separate forms: I can’t target the forms via their ID (wp-content/plugins/search-filter-pro/templates/myID.php won’t work).

    Considering my situation, is it possible to keep my customisations after plugin update (results.php will be probably overwritten?) and how can I target separate search forms? In Oxygen, there is possibility to add custom PHP either via post specific code block or plugin.

    #255322

    Trevor
    Participant

    As that function (the_posts_pagination()) is calling external (to the results.php template) code, the chances are that it is not initialised when our template is being used. You would (most likely) need to find the actual code being run by that function and bring it inside the results.php template to run there.


    Anonymous
    Inactive

    I’ve created a search & filter for posts using a shortcode to display results but the pagination isn’t working: https://nwhn.blackbaudwp.com/search-filter-test-1/

    Notes:

    • I’ve setup a custom results.php file in my WP child theme folder that is using <?php the_posts_pagination(); ?> to add numbered pagination.
    • Here are screenshots of my search & filter display results setup, WP child theme files and results.php file: https://drive.google.com/drive/folders/1ol0RgTTJayHuG0TDgDR9eUBwfZU1qwH1?usp=sharing
    • I’m using the beaver builder plugin to add the shortcode to my page (ICYW – I cannot add the Search & Filter – Beaver Builder Extension plugin due pluggin activation restrictions from my hosting team)

    Thanks for your help!

    #255290

    In reply to: No form


    Trevor
    Participant

    Hi

    Our results.php file does not change for any version of 2.x of our Pro plugin. We do that because customers edit and make their own custom versions, so we have made it so we do not break that.

    The current version is tested to work OK with the current version of WordPress, and also works fine with 5.5. When/if we release v2.5.2, it will say compatible with WordPress 5.5.

    We may release this shortly after WordPress 5.5 ships (so we have a few days to test with the final release version of WP5.5).

    We will use language files in the next major release of our plugin, V3, which is due in a few months.

    #255285

    In reply to: No form


    Anonymous
    Inactive

    The cooperation with Divi is very good.

    The horizontal display of the form only works with the free version, but not with the pro-version. Therefore I have now changed the whole design:
    https://www.veggie-treff.de/vegane-rezepte/

    Missing language files are not good in the long run. Especially with a paid version this should be standard.

    A copy for individual editing of “results.php” is nice, but also dangerous. So I have to check after each update if I have to make adjustments.

    Scary is the old version (3 months) and only tested until WordPress 4.9.
    When can I expect a current Pro version, which is at least tested with WordPress 5.4.2 and 5.5?


    Anonymous
    Inactive

    We purchased the Search & Filter Plugin Pro and have it all set up but we want to customize the search results to look like our usual search results – see http://www.farmtocafeteriacanada.ca/?s=school. (You’ll see the Search & Filter tab installed in the right sidebar)

    When we set the Display Result to “Shortcode” the template doesn’t reflect our theme and we haven’t been able to figure out how to customize the new results.php file that we moved into our child theme.

    When we set the Display Result to “As an Archive” and use our search.php custom template, the filter results don’t update when a new search term combination is entered. Only a manual refresh works. On other posts you have said that “any PHP needs to be inside the Ajax Container, or it will not update” ; “I suspect that the title PHP code is outside the Ajax Container, and thus not being refreshed. In that case, you may need to use a different Ajax Container that does include the title code, OR move the title inside the current Ajax Container.”

    Sadly we’re not developers and don’t understand how to make this work. Is there an easy change that we could make in the Ajax Container box? Or some other solution that you’d suggest e.g. using the query code?

    Thanks.

    #254985

    Trevor
    Participant

    Is it the display of the results that is the issue, that you are using a single (universal) results.php template?

    If so, did you place a copy of that template in the child theme folder, in a sub folder named search-filter, as per this guide:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results

    Note in the section after that, you can instead name the results.php templates as 15384.php and 17188.php thus allowing different content.


    Anonymous
    Inactive

    Hi Trevor,

    Thanks again for your help today. The results.php template is working out great.

    One last thing that I can’t get to work: the default results order. I couldn’t find where I could configure that in the plugin admin pages. My custom template loop query did a orderby title ASC. Is it possible to implement that with the Search & Filter template?

    Thanks!

    #254399

    Trevor
    Participant

    Then edit the results.php file, as described here:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results

    The code already there needs to be cut and placed inside the code I just gave you.

Viewing 10 results - 101 through 110 (of 1,224 total)