Forums › Forums › Search & Filter Pro › SFP Not Displaying CPT Results
- This topic has 13 replies, 2 voices, and was last updated 4 years, 1 month ago by
Trevor.
-
Anonymous(Private) December 7, 2020 at 11:16 pm #269048
Hello,
I am using a Werkstatt theme page to display post search results. This page uses the WPBakery Search&Filter form to display results in a Post Grid. Currently, the page shows the search form but the grid is ‘stuck’ loading and displays nothing. Also, the search fields are not reading any of the custom taxonomies even though Enable Auto Count is enabled.
As background context, I am using CPTUI Extended to create custom post taxonomies, SFP for the custom search form, and Relevanssi is enabled.
Can you please help me understand why the SFP form is not reading any of the CPT or categories?
Regards,
MarshallTrevor(Private) December 8, 2020 at 12:58 pm #269080I can see a JavaScript error in this file:
http://accd-cmtel.net/wp-content/themes/werkstatt/assets/js/app.min.js
In a minified file, it is difficult to find the error. How old is this theme? I ask because I see these two strings in that file:
.btn[href*=#]
.button[href*=#]
Which are coded incorrectly, and should be:
.btn[href*="#"]
.button[href*="#"]
I think. This/these errors are halting JavaScript on the page. Most themes fixed this coding issue (the old code was fine with the previous version of jQuery) 3 or more years ago, so this is very strange to see it still being used.
Anonymous(Private) January 13, 2021 at 12:00 am #272600Hi Trevor,
I am checking back with you since my last post.
In addition to changing the code in app.min.js I’ve updated both WordPress (to 5.6) and the Werkstatt theme (most current 4.6.3.3). I’ve also made styling changes to the displayed search form and blog posts; the results page is the same as before.
The two problems are: 1) The search form filter is not detecting registered taxonomies; 2) The post grid (using Search & Filter as the data source) will not display any posts, only a stuck animated ellipsis. I’ve rebuilt the cache in SFP and the index in Relevanssi with no change. Do you have any suggestions for how I might proceed?
Regards,
Marshall -
AuthorPosts