-
AuthorSearch Results
-
December 5, 2018 at 2:34 pm #195343
TrevorParticipantThe 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).
December 3, 2018 at 6:04 pm #195173In reply to: Trying to display search results on same page
AnonymousInactiveOkay! 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.
November 30, 2018 at 6:45 pm #195067In reply to: Customising The Search Results Page
AnonymousInactiveYes, 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.
November 28, 2018 at 2:01 pm #194804In reply to: sfid results.php
TrevorParticipantYou 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 } ?>
November 27, 2018 at 8:41 pm #194747Topic: sfid results.php
in forum Search & Filter Pro
AnonymousInactiveIs there a way to get the sfid in results.php (so that I can basically do an if/else to change some display text)?
November 26, 2018 at 8:16 pm #194623
TrevorParticipantIn 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>
November 26, 2018 at 7:32 pm #194607
TrevorParticipantAre 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.
November 13, 2018 at 12:00 pm #193578
TrevorParticipantThe 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?
November 12, 2018 at 3:04 pm #193503In reply to: Post dates not displaying in results
AnonymousInactiveThanks 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!
MattNovember 12, 2018 at 12:11 pm #193486In reply to: Incorporate 3rd Party API
TrevorParticipantIf 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.
-
AuthorSearch Results
-
Search Results
-
Topic: sfid results.php
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)?