Forums Forums Search & Filter Pro SFP Not Displaying CPT Results

Viewing 10 posts - 1 through 10 (of 14 total)
  • Anonymous
    #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,
    Marshall

    Trevor
    #269080

    I 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
    #269176

    Hi Trevor,

    Thanks so much for finding the JS error. The Werkstatt theme’s last update was November 2, 2020 but I first purchased the theme back in 2017; I’m not sure when it first was issued. I will try to amend this now.

    -Marshall

    Trevor
    #269178

    Let me know how you get on and if that fixes things?

    Anonymous
    #269179

    Hi Trevor,

    I just updated the app.min.js file to your suggestion but there was no change to the loading issue. Is there something else that I can try to get SFP to recognize the custom taxonomies?

    Regards,
    Marshall

    Anonymous
    #272600

    Hi 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

    Trevor
    #272664
    This reply has been marked as private.
    Anonymous
    #272721
    This reply has been marked as private.
    Trevor
    #272762
    This reply has been marked as private.
    Anonymous
    #272823
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 14 total)