Forums Forums Search Search Results for 'results.php'

Viewing 10 results - 561 through 570 (of 1,224 total)
  • Author
    Search Results

  • Trevor
    Participant

    I suspect that it is possible. Essentially, the results would have to appear twice on the page, in separate containers within the overall results container. One set would be hidden, you could use jQuery to toggle which view shows.

    Our results.php file directly echoes HTML to the page as it loops, but instead you could pipe this output into two string variables, iteratively adding to them. And thus you can build both view type containers with content, and then echo the completed containers to the page, with the pagination afterwards.


    Anonymous
    Inactive

    Maybe 2 identical searches with different IDs and then use 101.php and 102.php rather than results.php (101 and 102 being the search codes). Would need to capture the content of the search and pass back and forth.


    Anonymous
    Inactive

    How would I go about having an option to display at least two different search results layouts? I currently have the search results display via shortcode. I customized the results.php template so that the results appear in a 4 column per row grid.

    I want to have an option so the user can choose between this grid layout and a row layout (so the results are on one row per result) for their search results.

    I was able to set up a jQuery tab layout that shows the two different layouts in each tab, however the pagination breaks when used. I’m assuming there is something with AJAX that needs to happen so the pagination updates inside these tabs. Any help or direction is much appreciated.


    Anonymous
    Inactive

    Hi

    I am using Generate Press, Beaver Builder, Themer and Pods.

    I have created a template in Pods to show my search results. I could not get this to work with SFP. I then build a template in Themer to show the search result, again I can not get SFP to use this template.

    Can you please help. I’ve tried using shortcode and archive methods. I’ve tried with Ajax disabled and on. I’ve tried using the custom template from Pods in results.php, this did not work.

    Your help would be much appreciated to get either Pods or Themer to work with SFP to show the results.

    #166381

    Anonymous
    Inactive

    Yes, sir.
    I have a ‘results.php’ file inside the created ‘search-filter’ folder inside the child theme’s folder.

    And currently for ‘No Results’ there is just

    echo "No properties found matching your criteria. But you can also check these related properties:";


    Anonymous
    Inactive

    Hi i would like to include further details to the displayed with the custom results.php which are not saved in the custom post type i am requesting. There is another table listing dates which has the same ID as the post_ID of the custom post type i am searching.

    i was looking up https://codex.wordpress.org/Class_Reference/wpdb as this should be a way to get the data from this same SQL but from a different table included and displayed with the results.

    I am really stuck and dont know where to start. If there is anyone who know how to make this easy and straight forward i would be very happy for some hints.

    #165916

    Trevor
    Participant

    We do not have code to make a column/grid for you in the shortcode method.

    You can follow the Customising the Results documentation (so you have your own copy of the results.php file). The you can edit/customize the file as you wish.

    It IS possible to add code from your own theme that would make a grid, if your theme has such code visible on other pages so that you can inspect it to copy it.

    #165807

    Trevor
    Participant

    Did you follow the Customising the Results documentation (so you have your own copy of the results.php file), and did you do any customisation to the file (as by default it has a ‘No Results Found’ message)?

    #165631

    Anonymous
    Inactive

    Hello Trevor and thanks for your support!

    This did not worked as i ‘d like but i manage to change the results.php file and get what i nedd as a result.

    Once again thanks!


    Trevor
    Participant

    My guess is that you are using the shortcode display results method? If os, follow this customising guide:

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

    And edit the local theme folder copy of results.php and find and remove this:

    Found <?php echo $query->found_posts; ?> Results<br />
    Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />

    At the top (on the original file at lines 29 and 30.

    And also this line towards the bottom (line 73):

    Page <?php echo $query->query['paged']; ?> of <?php echo $query->max_num_pages; ?><br />
    
Viewing 10 results - 561 through 570 (of 1,224 total)