-
AuthorSearch Results
-
June 25, 2019 at 3:32 pm #214875
In reply to: Not filtering at all, always show all result
TrevorParticipantClearly you would need to replace this part:
https://www.screencast.com/t/uKLQ9ga4Qm
The really basic WordPress pagination is what you can see in the sample template files in our plugin folder, in a sub-folder called templates. Look in the results.php file for an example of pagination code:
June 24, 2019 at 10:37 am #214684
TrevorParticipantI have had a look and our plugin is correctly using the results.php file in the child theme search-results sub-folder.
This is the line that seems to be failing:
https://www.screencast.com/t/ZB7T2DyHz7zR
The paragraph tags are appearing, the but
the_content()
function seems not to be fetching any content. It may be theme that is doing this. Has Enfold been updated recently?Looking at the Avia Framework, on which Enfold is based, they seem to use this code:
get_the_content(__('Read more','avia_framework')
instead ofthe_content()
June 14, 2019 at 2:27 pm #214065In reply to: Pagination button styling
AnonymousInactiveThank you that’s great Trevor!
Can I also ask how I alter the custom results.php code you wrote for Enfold so that it’s 4 columns instead of 3?
Thanks.
June 13, 2019 at 7:55 am #213953In reply to: Pagination button styling
TrevorParticipantYour appear to be using our Shortcode Display Results method, and the default results.php code has support for the free WP PageNavi plugin, which allows a lot of options for navigation styling. Did you use that?
June 12, 2019 at 9:30 am #213874In reply to: Can we remove page numbers?
TrevorParticipantIf you are using the ‘As a Shortcode’ display results method, please see this documentation, especially the part about customising:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/
After making the copy of the results.php file, edit that file and change/delete the PHP lines that output the pagination, and anything else you want to change.
June 6, 2019 at 11:07 am #213437In reply to: Update wordpress 5.2.1
TrevorParticipantSo, normally it is a grid? I wonder, did you originally create a custom results.php file for the layout, and do you have a backup of that file?
IF you did have a custom file, where was the file in the site folder structure? By default it is in a sub-folder of our plugin folder called ‘templates’, but if you edit the file here, any update of our plugin will over-write the file back to default.
So, to prevent this, in the child theme folder, one normally makes a sub-folder named ‘search-filter’ and places the custom results.php in there.
June 4, 2019 at 2:27 pm #213271
TrevorParticipantThe results-infinite-scroll.php file will not be needed. Its contents are need in the results.php file instead of that file’s normal contents IF you want to have Infinite Scroll. The plugin only ever looks for the results.php file, or a numbered file, such as 2345.php
I will close this thread for now.
June 4, 2019 at 2:14 pm #213269
AnonymousInactiveFigured it out – Even though I’m using the pro version, I still needed to have both the results.php file and results-infinite-scroll.php file in a search-filter folder (not search-filter-pro). Thanks!
May 31, 2019 at 7:24 am #212932
TrevorParticipantDid you also rename the file to results.php? This you must also do.
May 23, 2019 at 6:48 am #212123In reply to: Custome query
TrevorParticipantI think I understand. You would probably be better off using our Shortcode display results method on a real WordPress page instead of creating your own archive template.
If your goal is to only shows posts that have the meta key ‘show_in_a_z_list’ set a ‘1’ then you can do this in the Post Meta settings tab of the form. It might need to look like this:
https://www.screencast.com/t/2y2xrZyoYM
OR this (I am not sure which would work):
https://www.screencast.com/t/BoMkAG3yHi
If you need to modify our results.php template the guide is here:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
If you need to output the value of an ACF field, and give it a label, the code shown in this post might help:
You may find other posts with snippets with this forum search:
https://support.searchandfilter.com/forums/search/results.php+acf+get_field/
-
AuthorSearch Results