Were you told that you need to insert the LearnDash course ID for one of your blocks or shortcodes to work properly? 🧐 Did it make you feel like a lost puppy in a haystack? I feel your pain. So, let’s alleviate it.
There are generally two ways to find the LearnDash course ID, both of which we’ll cover in this article.
Table of Contents
- Why you need the course ID
- Find course ID without a plugin (one-off uses)
- Find course ID with a plugin (great for when you need it often)
Why You Need the LearnDash Course ID
The main reason you’ll need your LearnDash course ID is to use it with a LearnDash block or shortcode. Many LearnDash blocks are smart enough to detect which course, lesson, topic or quiz the user is viewing, and will display the appropriate content for that course.
However, if you use some blocks/shortcodes outside of a LearnDash page (on a sales page or custom page built with Elementor or Beaver Builder), you will need to use the course ID to tell LearnDash which course you’re referring to.
You might also just want to display information related to a specific course.
SEE ALSO: Complete LearnDash Shortcode Reference
How to Find Course ID Without a Plugin
If you just need your LearnDash course ID once or twice, you can easily find it without a plugin. The quickest way to locate the LearnDash course ID is by navigating to the LearnDash LMS > Courses page in the WordPress admin.
On that page, hover over the course you need the ID for. Depending on your browser, you should see a link appear somewhere near the bottom of your screen. This URL contains the course ID.
Alternatively, if you’re already on the course edit screen, you can simply look up in your URL bar and see the course ID.
How to Find Course ID With a Plugin
This option is best for when you need to access the LearnDash course ID often. It’s also great because it exposes the IDs for all other WordPress post types, including blog posts, pages, lessons, topics & quizzes.
- Install & activate the Reveal IDs plugin
- Navigate to your LearnDash LMS > Courses page, and voila!
By default, this plugin will reveal IDs for all WordPress post types. To disable it on certain post types, click on Screen Options at the top of the page, and deselect “ID.”
If you have any trouble finding your LearnDash course ID, just let me know in the comments.