Homepage › LearnDash Community Forums › General (free) › Filter category with [learndash_course_grid]
-
Filter category with [learndash_course_grid]
Posted by Guillaume on Jul 12, 2022 at 1:34 pmHi everyone,
I was just wondering if it was possible to filter by course category directly in [learndash_course_grid] shortcode ?
Thanks !
Guillaume replied 2 years, 2 months ago 2 Members · 7 Replies -
7 Replies
-
Hi Guillaume,
Yes, this is possible. You can use the ld_course_category parameter like this:
[learndash_course_grid ld_course_category="cat-slug"]
-
Hello Dave, I appreciate the support!
Howerver, it’s still not working for me. I have courses with Live category and courses with Replay category ; but I can’t filter on my Live category (slug: live). I’ve tried to put all my Live courses with Live category as principal but it’s still not working.
Here is my shortcode :
[learndash_course_grid skin="grid" card="grid-2" thumbnail_size="large" orderby="title" order="ASC" ld_course_category="live"]
Thank you !
-
-
That looks like the correct syntax.
I found all those parameters in the LearnDash code so I think they should work, but LearnDash doesn’t document them anywhere, so I would reach out to LearnDash support and ask about parameters for the new grid shortcode.
-
-
Were you waiting on me for something? In my last post, I was suggesting that you reach out to LearnDash support, ask about course grid parameters, and see if they knew why they weren’t working for you.
Sorry if I made it sound like I was going to do that.
-
Yeah I misunderstood lol. But I finally got the support.
Here is the correct syntax :
[learndash_course_grid skin="grid" card="grid-2" thumbnail_size="large" orderby="title" order="ASC" taxonomies="ld_course_category:live;"]
Thanks !
-