Forums Forums Search Search Results for 'results.php'

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

  • Trevor
    Participant

    The Not Loading issue is this:

    Fatal error: Call to undefined function the_field() in /storage/content/78/125678/dev.frakka.se/public_html/wp-content/plugins/search-filter-pro/templates/results.php on line 82

    I would take a look at that file and that line to find the error. If it is the standard results.php file, it is this:

    if (function_exists('wp_pagenavi'))
    {

    Do you have the WP-PageNavi plugin installed?

    Temporarily change the form from Shortcode to Custom will stop the error whilst you try to fix it.

    I am not sure what the failure to update is. You could try a manual update (download the file from Your Account area, deactivate and delete the existing version, and upload and install the new version).

    #195173

    Anonymous
    Inactive

    Okay! I was able to successfully display the posts using shortcodes and have replicated the results.php page to customize the html. All of that looks fine, it’s just that I seem to be having some issues with Ajax and submitting my search. The auto search does not load the category I have selected and neither does the submit button. The Results Url is correct (the same page I have the shortcodes listed) I’m not sure what else could be wrong.

    #195067

    Anonymous
    Inactive

    Yes, it is the same instructions. I copied the results.php file to the search-filter folder in my themes folder.

    All I’m looking to do is add a few things to the search results for each listing including an image and some other stats for users to see before clicking to see the whole result.

    #194804

    In reply to: sfid results.php


    Trevor
    Participant

    You can either make a results.php file per form. So, if a form is ID # 1234 then you name the results.php for it 1234.php.

    Or you can use PHP, like this (I think):

    <?php
    global $searchandfilter;
    
    if ( $searchandfilter->active_sfid() == 1234) {
      // do this
    } else {
      // do that
    }
    
    ?>
    #194747

    Anonymous
    Inactive

    Is there a way to get the sfid in results.php (so that I can basically do an if/else to change some display text)?

    #194623

    Trevor
    Participant

    In the results.php file, there is this line:

    <p><br /><?php the_excerpt(); ?></p>

    Your theme might be adding the extra <p> parts. Try changing the line to this:

    `<div><?php the_excerpt(); ?></div>

    #194607

    Trevor
    Participant

    Are you using our Shortcode Display Result Method, as described here:

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

    If so, follow the guide on customising and then edit that new results.php file, where you will find the text you are looking for.

    #193578

    Trevor
    Participant

    The template code used for the results is not standard (as per the exemplar results.php file). Does this still happen if instead you use the default results.php template file?

    #193503

    Anonymous
    Inactive

    Thanks Trevor! I really appreciate your help here.

    It looks like the original code in the results.php, “<?php the_date();?>”, was working inconsistently as it would only pull back dates for random posts. Possibly a bug with the plugin…

    When I changed the code to “<?php echo get_the_date();?>”, all of the dates for published posts started displaying properly.

    Cheers!
    Matt

    #193486

    Trevor
    Participant

    If it is in the results your are talking about, in each post, then that would need to be coded in to the PHP template being used for the results page. Which file that is depends on the Display Results Method you are using in the form. It could be a theme template (custom or standard coding), a plugin template, or a template based on our plugins default results.php file.

    Whichever it is, would depend on ease, but I suspect that you would need a third party coder even for the easiest of these alternatives.

Viewing 10 results - 401 through 410 (of 1,224 total)