---
title: "The Complete List of Tutor LMS Shortcodes and How to Use Them"
date: 2022-09-01
modified: 2024-05-04
author: "userelements_wh8sr3"
url: "https://www.userelements.com/tutor-lms-shortcodes/"
markdown_url: "https://www.userelements.com/tutor-lms-shortcodes.md"
type: post
excerpt: "Tutor LMS comes pre-packaged with a ton of shortcodes you can use to display various information. Here is your comprehensive […]"
categories:
  - "Tutor LMS"
---
Tutor LMS comes pre-packaged with a ton of shortcodes you can use to display various information. Here is your comprehensive list of all Tutor LMS shortcodes, along with how to use them.

## **Tutor LMS Shortcode Reference**

Here’s a complete list of every available Tutor LMS shortcode.

If you want to dig into the code, you can find a complete list of all Tutor LMS shortcodes and their parameters in *`/tutor/classes/Shortcodes.php`*

**Shortcode****Description****\[tutor\_course\]**Displays a single course or list of courses. Many options are available to filter &amp; customize the output. **Available Parameters:**

1.id  
2\. exclude\_ids  
3\. category  
4\. orderby  
5\. order  
6\. count  
7\. column\_per\_row  
8\. course\_filter  
9\. show\_pagination

**\[tutor\_dashboard\]**Displays student dashboard.**\[tutor\_student\_registration\_form\]**Display Student Registration form**\[tutor\_instructor\_registration\_form\]**Displays course instructor registration form.**\[tutor\_instructor\_list\]**Displays list of course instructors. **Available Parameters:**   
1\. column\_per\_row  
2\. filter  
3\. count  
4\. layout

### How to Use Them Tutor LMS Shortcodes

#### Tutor Course \[tutor\_course\]

A list of courses.

![Tutor LMS Course shortcode](https://www.userelements.com/wp-content/uploads/2024/04/Screenshot-2024-04-30-092445-1024x551.png)**Parameters:**

**Option****Description****Values****id**IDs of List of courses to displayAny valid course ID(s) (comma separated)**exclude\_ids**IDs of List of courses to excludeAny valid course ID(s) (comma separated)**category**Course categoryAny valid course category ID, slug, or term name**orderby**How to order the coursesID, title, rand, date**order**Sort orderDESC, ASC**count**Any valid number**column\_per\_row**Courses per columnAny valid number**course\_filter**Display course filteron, off**show\_pagination**Display course paginationon, off**Example**:

```php
[tutor_course id="20,64" exclude_ids="567,332" category="18,19" orderby="ID" order="desc" count="3" column_per_row='3'<br></br>course_filter='off' show_pagination='on']
```

#### Tutor Dashboard \[tutor\_dashboard\]

Tutor Dashboard for students

![](https://www.userelements.com/wp-content/uploads/2024/04/Screenshot-2024-04-30-094401-1024x372.png)#### Instructor Registration Form \[tutor\_instructor\_registration\_form\]

Instructor Registration

![](https://www.userelements.com/wp-content/uploads/2024/04/Screenshot-2024-04-30-094557.png)#### Instructor List \[tutor\_instructor\_list\]

Course instructor list

![[tutor_instructor_list]](https://www.userelements.com/wp-content/uploads/2024/04/tutor-lms-new-filters-search-1024x761.webp)**Parameters:**

**Option****Description****Values****column\_per\_row**Instructors per columnAny valid course ID(s) (comma separated)**filter**Filter attribute controls the presence of category, search, and rating filters in the instructor listing.on, off**count**Number of instructors to displayAny valid number**layout**layout for the instructors’ listpp-top-full, pp-cp, pp-top-left, pp-left-middle, pp-left-full**Example**:

```php
[tutor_instructor_list column_per_row="1" filter=on count="2" layout="pp-top-left"]
```

### Shortcode for Enrolled Courses

Custom shortcode for enrolled courses. Insert this snippet in your themes `functions.php`

```php
<?php
/**
* Enrolled Course Shortcode
*/
function tutor_enrolled_course_register_shortcodes() {
    add_shortcode( 'enrolled-course', 'shortcode_tutor_enrolled_course' );
}
add_action( 'init', 'tutor_enrolled_course_register_shortcodes' );

/**
 * Shortcode Callback
 */
function shortcode_tutor_enrolled_course( $atts ) {
    ?>
    <h3><?php _e('Enrolled Courses', 'tutor'); ?></h3>

    <div class="tutor-course-list tutor-grid tutor-grid-3">

        <?php
        $user_id = get_current_user_id();
        $my_courses = tutor_utils()->get_enrolled_courses_by_user($user_id);

        if ($my_courses && $my_courses->have_posts()):
            while ($my_courses->have_posts()):
                $my_courses->the_post();
                $post = $my_courses->post;
                ?>
                <div class="tutor-card tutor-course-card">
                    <?php tutor_load_template( 'loop.thumbnail' ); ?>

                    <div class="tutor-card-body">
                        <?php tutor_load_template( 'loop.rating' ); ?>
                        
                        <div class="tutor-course-name tutor-fs-6 tutor-fw-bold tutor-mb-32">
                            <a href="<?php echo esc_url( get_the_permalink() ); ?>">
                                <?php the_title(); ?>
                            </a>
                        </div>
                        
                        <div class="tutor-mt-auto">
                            <?php tutor_load_template( 'loop.enrolled-course-progress' ); ?>
                        </div>

                        <div class="tutor-mt-24">
                            <?php tutor_course_loop_price(); ?>
                        </div>
                    </div>
                </div>
                <?php
            endwhile;

            wp_reset_postdata();
        else :
            tutor_utils()->tutor_empty_state( tutor_utils()->not_found_text() );
        endif;
        ?>

    </div>
    <?php
}
```

**Example:**

```php
[enrolled-course]
```
