You can get the current post’s course ID from learndash_get_course_id(), e.g.
$course_id = learndash_get_course_id();
if (isset($course_id) && $course_id) echo esc_html(get_the_title($course_id));
Under the covers it’s stored in a post meta value course_id, but you might as well use their helper function to read it.
Related Posts:
- Tips for using WordPress as a CMS? [closed]
- Redesigning Custom Post Type “Add New” page
- How Do I Use The WordPress Plugin Posts 2 Posts by Scribu?
- Creating a default Custom Post Template that a Theme can override
- Jetpack plugin (ShareDaddy): Prevent share buttons showing on custom post types?
- Getting Custom Post Type content from main-site of a Multisite
- How to make a list of companies’ information and display them to user, using custom post types and a custom taxonomy?
- Custom comment type maybe?
- Twillio How To Send SMS for Custom Post Type
- Seriously stuck with some custom meta box/plugin stuff
- Enable comments for post with comments meta box removed
- [Plugin: Posts 2 Posts] reciprocal connections
- How to Build a Movie Library in WordPress 3.x
- How do I get multiple pages by title?
- I need to add a custom “cover” to every new post — plugin or custom setup?
- How to get images from EDD post?
- wordpress reusable content blocks
- Allow users mark posts as “complete”?
- Is there a way to order posts and custom post types as one group?
- dynamically generating plugin syntax
- Duplicate posts when posting nulls in records in phpMyAdmin [closed]
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Accessing post’s meta data based on user’s click of a post
- Exclude post by custom meta with pre_get_posts
- get_post_type() and WP_QUERY issue
- List taxonomy terms for post as checkboxes
- Custom post type – no layout section of Document tab, and no author choice
- Creating a custom post type, adding custom meta fields, preventing all future editability of posts of this type
- Keep a post copy when this one is updated – issue
- how to add a button next to the wordpress view button?
- Unable to delete custom post types, confusion around capabilities
- What is the best way for showing a grid of customer logos?
- How to delete all trashed item in one-go
- How can I use a file in my plugin as a replacement for single.php on custom-post-type query?
- publish_post action doesn’t work
- Disable Individual Plugins (specifically in Custom Post Types) on a per-post basis?
- custom post type don’t appear in the home page
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- How to set category correctly for a custom post created by a remote API call?
- How to use template_include hook with form submission?
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- Custom Post Type – custom form in dashboard
- $pages = get_pages(‘child_of=’.$post->ID); Why arguments are concatenated?
- WP-API Custom Post Type json_no_route
- Price comparison table based on Custom Post Type?
- How can I list custom post type categories of portfolio
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- Plugin generated unexpected output – No PHP errors
- “Allowed memory size” problem [closed]
- “After file loaded” action
- Including content from legacy app: via plugin or custom content?
- Dictionary-style definition list plugin
- Custom Post Type, Custom Columns List
- How to create repeater field manually, without plugin (ACF Pro)?
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- Rename existing cpt and taxonomy with new textdomain
- how to create hierachial taxonomy and manage under single post type?
- need click to clipboard button on my site
- Setting Author on CPT
- Check if theme supports sidebar
- Custom Post Type same name as Category
- Create category for each user
- Adding category base to url in custom post giving 404?
- custom post type plugin error [closed]
- Can i stream data to a custom_post_type?
- Is there a hook similar to “save_post” which only fires AFTER the post is completely published?
- How to display the custom post related blog by category?
- Undefined index: custom_post_template_present
- Problem with checked box on wp car manager plugin
- Merging new theme and plugins from development site to production
- WordPress hide post from custom post-type on a single page
- $wpdb->insert not working inside save_post tag
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- Calling an custom field from theme option at the frontend
- Array to string conversion error when trying to POST multidimensional array
- Creating themes using the one Plugin (Toolkit)
- How to add jquery to my custom post type wp plugin
- WordPress list child pages of custom post type
- WordPress custom posttype meta values doesnot save
- Assigning a custom post type to a custom page
- making a glossary with wordpress
- Create custom fields on a post
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- get_option include in my adsense
- WordPress Custom post type won’t save properly
- featured image problem with custom post type
- How can I default a new post to being saved?
- Remove base from the custom post type URL [duplicate]
- Is an Office a custom post type [closed]
- Change the behaviour of archive cpt category and single cpt by plugin, not by theme
- A plugin for software reviews site like this one?
- Display Custom Post Type and Custom Taxonomy Data on Front End Using Only a Plugin
- WordPress show different custom post type
- Links not opening as they should. Custom WP plugin
- How to make content as required in custom post type?
- How to provide page_template path in custom plugin using WordPress
- Remove H1 title in admin post edit screen
- How to include Font Awesome icons into ‘menu_icon’ from register_post_type() function – wp admin?
- How do I know if an archive correspond to a custom post type taxonomy?