Course Catalog - Shortcodes (Adding Catalog To Website)
Shortcodes
TIP: What Are Shortcodes
Shortcodes add dynamic content to your site via a small piece of code. Learn more: Shortcodes - How To Use
To view the complete list of shortcodes, head to Admin Dashboard → CM Course Catalog Pro → Shortcodes.
The shortcodes are:
Course Shortcodes
1) Show Single Course
- Shortcode -
[cmcc_single_course]
- Parameters
- slug (obligatory) - The slug of the course
- Example -
[cmcc_single_course slug="course-slug"]
2) Show Course Rating
- Shortcode -
[cmcc_cm_star_rating]
- Parameters
- ratingfor - determines whether to show rating for specific post (post ID)
- disablerating - determines whether to disable rating; use "1" to disable
- hideaverage - determines whether to hide average note; use "1" to disable
- hidecount - determines whether to hide ratings count; use "1" to disable
- Example -
[cmcc_cm_star_rating disablerating=0 hideaverage=1 hidecount=1]
Catalog Shortcodes
1) Show Custom List of Courses
- Shortcode -
[cmcc_category_list]
- Parameters
- count - determines whether you want to display category elements; value should be 1 or 0
- columns - sets the number of columns; value should be between 1-6
- category - displays the list of Category terms; value should be 1 or 0
- customtax - displays the list of Custom Taxonomy terms; value should be 1 or 0
- tag - displays the list of Tag terms; value should be 1 or 0
- hide_empty - determines whether to display categories with posts assigned; value should be 1 or 0
- Example -
[cmcc_category_list count=1 columns=3 category=1 customtax=0 tag=0 hide_empty=0]
2) Show Course Catalog
- Shortcode -
[cmcc_course]
- Parameters
- Content parameters (changes which courses appear)
- catalog_id - the ID of the Catalog you want to show with the list of categories.
- cats - the slug of the category from which the course should be displayed.
- cmcustomtax - the slug (single or comma separated) of the Custom Taxonomy 1 from which the course should be displayed.
- cmcustomtax2 - the slug (single or comma separated) of the Custom Taxonomy 2 from which the course should be displayed.
- cmcustomtax3 - the slug (single or comma separated) of the Custom Taxonomy 3 from which the course should be displayed.
- cmcustomtax4 - the slug (single or comma separated) of the Custom Taxonomy 4 from which the course should be displayed.
- tags -the name of the tag the course displayed should have.
- course_ids - the IDs of the course you only want to show in directory. Value should be an ID, or comma separated IDs.
- exclude_ids - the IDs of the course you want to exclude from displaying in directory. Value should be an ID, or comma separated IDs.
- Visual parameters (changes the visual of the catalog)
- view - the id of the view from the following:
tiles, list, directory, table
(defaults to:tiles
). Note: the viewtable
is available only in the Enterprise Edition of CM Course Catalog since the version 1.4.0. - hidesearch - whether to show the search field. Value should be 1 or 0
- hidecategories - whether to show the categories filter. Value should be 1 or 0.
- hidecustomtaxonomies - whether to show the Custom Taxonomy filter. Value should be 1 or 0.
- hidetags - whether to show the tags filter. Value should be 1 or 0.
- hidesearchby - whether to show the Search by City/Region/ZIP/State field. Value should be 1 or 0.
- row_course - number of the course in the row (
tiles
view only). - page_course - number of the course on one page.
- only_relevant - use 1 if you like only to display the categories associated with courses in the directory in the. Value should be 1 or 0.
- backlink - the URL of the backlink which should return the user to the main index
- backlink_label - the label for the backlink used in the Dashboard view of the Course Catalog Index
- readmore - the label for the button allowing to display the additional information in Course Catalog view filtered by category
- targeturl - the URL in which the course catalog result will be displayed filtered by category (in Course Catalog view)
- rtl - when it is enabled it will add support to right-to-left languages
- hidecoursecode - whether to show the course code on the index. Value should be 1 or 0.
- showdesc - whether to show the course description column. Applies for the
table
view only. The value should be yes or no, default value is yes. Note: this parameter is available only in the Enterprise Edition of CM Course Catalog since the version 1.4.0. - showcat - whether to show the category column. Applies for the
table
view only. The value should be yes or no, default value is yes. Note: this parameter is available only in the Enterprise Edition of CM Course Catalog since the version 1.4.0. - showtax1 - whether to show the taxonomy 1 column. Applies for the
table
view only. The value should be yes or no, default value is yes. Note: this parameter is available only in the Enterprise Edition of CM Course Catalog since the version 1.4.0. - showtax2 - whether to show the taxonomy 2 column. Applies for the
table
view only. The value should be yes or no, default value is yes. Note: this parameter is available only in the Enterprise Edition of CM Course Catalog since the version 1.4.0. - showtax3 - whether to show the taxonomy 3 column. Applies for the
table
view only. The value should be yes or no, default value is yes. Note: this parameter is available only in the Enterprise Edition of CM Course Catalog since the version 1.4.0. - showtax4 - whether to show the taxonomy 4 column. Applies for the
table
view only. The value should be yes or no, default value is yes. Note: this parameter is available only in the Enterprise Edition of CM Course Catalog since the version 1.4.0. - showtime - whether to show the time in column. Applies for the
table
view only. The value should be yes or no, default value is yes. Note: this parameter is available only in the Enterprise Edition of CM Course Catalog since the version 1.4.0.
Example - [cmcc_course showfilter="1" row_course="3" cats="1" only_relevant="0" tags="tagname" course_ids="1,3,5" exclude_ids="2,4"]
a) Extra Catalog Page Shortcodes
These Shortcodes can only be used on the Course Page template.
[cmcc_categories]
- displays the categories and tags box.[cmcc_post_title]
- displays post title[cmcc_post_content]
- displays post content.[cmcc_featured_image]
- display featured image.[cmcc_back_to_index_link]
- displays back link.[cmcc_page_visit]
- displays amount course page visits.[cmcc_page_transition]
- displays amount course page link clicks.[cmcc_page_visit_transition]
- displays amount course page visits and link clicks.
![]() |
Get more information about the Course Catalog LMS plugin for WordPress Other WordPress products can be found at CreativeMinds WordPress Store |
![]() |
Let us know how we can Improve this Product Documentation Page To open a Support Ticket visit our support center |