Forums › Forums › Search & Filter Pro › Filter LearnDash Course Grid
Tagged: Course grid, learndash
- This topic has 3 replies, 2 voices, and was last updated 4 years ago by Trevor.
-
Anonymous(Private) December 11, 2020 at 4:00 pm #269570
First off, here are the plugins that I am using:
- Search and Filter Pro (S&F)
- Learndash LMS (LD)
- Learndash LMS Course Grid Add-on
What I am trying to do is have the S&F plugin filter the Learndash courses on an All Courses page via AJAX. As shown above I am using the Course Grid Display, but I think that that plugin just pulls in the existing query, so I think we just need to be able to target the original Learndash course query that displays the courses as a list.
I have successfully been able to filter the courses when displaying the results as “An Archive page”, however I’d like to have it display the results via AJAX in the grid and not on a separate page. I have been going through the LD files and trying to input the custom code(specified in your documentation) to have it S&F plugin modify the query, but I can’t get it to modify the existing query. It’ll either take over the entire query and just display the course title and description without any of the other grid information, or not work at all.
If you could point me in the right direction or if you have ideas of how to accomplish filtering the courses and have them display as part of the grid results, I’d appreciate any feedback you have. Thank you.
Working page: https://cucbeta.wpengine.com/all-courses/
Trevor(Private) December 11, 2020 at 9:33 pm #269642Generally, I would normally recommend that you place on the page:
The form shortcode/widget
A link shortcode, similar to the form shortcode, which would look something like[searchandfilter id="1198" action="filter_next_query"]
The LearnDash gridI am not sure what Display Results Method should be used in the form, but start with the Custom method.
-
AuthorPosts