Forums › Forums › Search & Filter Pro › Unable to load
Tagged: ajax, search results
- This topic has 1 reply, 2 voices, and was last updated 4 years, 7 months ago by Trevor.
-
Anonymous(Private) March 15, 2020 at 5:33 pm #236720
I have created a custom post type archive populated with custom post called film_kernal.
This is currently set to my homepage.
By default this displayed all posts of type film_kernal. These are displayed within <divs> containted within the standard ‘wrap‘ container that comes as part of the archive.php page in the twentyseventeen theme, although in my case I have created a child theme and created a new archive page based on the templatecalled archive-film_kernal.php
On this page I have added and am displaying a form that I’ve generated with searchandfilterpro plugin that appears in a left hand side custom sidebar.
The fields shown are the terms associated with a custom taxonomy I’ve created called kernal_category. Each film_kernal post is associated with a category is this taxonomy.
My reason for using searchandfilterpro was the ajax functionality to configure my page such that when a user selects filter options the page loads without reloading the whole page – identicle to the demo site here:
https://demo.searchandfilter.com/movies/
Problem
My filters are not behaving this way, instead when selecting a category to filter by the search results are appearing but only by loading the default page for the post type.
For example, if I select Business in my filter it will redirect to https://www.mydomain.com/kernal_category/business/ and will correctly filter the posts that match that taxonomy term.
I’ve read, and re-read the searchandpro documentation but cannot figure out where I am going wrong.
My searchandfilterpro settings are:
General > Search in the following post types: Kernals
General > Auto Submit Form: No
Display Results > Method: Post Type Archive
Display Results > Enable Filtering on Taxonomy Archives: Yes
Display Results > Load Using Ajax: No (to assit debugging, does not work with turned on either) -
AuthorPosts