First off, here are the plugins that I am using:
LearnDash course grid lets you display your courses/lessons/Topics/Quizzes in a grid layout. This plugin provides several shortcodes to display an interactive course grid layout. Default shortcode to display course grid layout is ldcourselist, Which provide 3 column view. Following are other default options provided by this short code.
- Search and Filter Pro (S&F)
- Learndash LMS (LD)
- Learndash LMS Course Grid Add-on
- In LearnDash’s course grid, only the featured image & “see more” button are clickable by default. If you click on the course title, or the short description, nothing happens. Many people expect the course title to take them to the course page, so let’s see how we can make that happen.
- The Course Grid add-on gives you the ability to create a responsive course library that can be inserted on any page or post of your site. This is a perfect feature if you have a variety of course offerings and want to give users the ability to filter through them.
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.
Learndash Course Grid Youtube
Working page: https://cucbeta.wpengine.com/all-courses/