Title: Shortcode
Last modified: August 28, 2020

---

# Shortcode

 *  Resolved [Per Olsson](https://wordpress.org/support/users/styrketrappan/)
 * (@styrketrappan)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/shortcode-766/)
 * I seem to have an issue with the shortcode [sensei_courses …] where parameter
   Number seem to not work. Whatever I write (tested with 5, 6, 7, 20, 30, 40, 50)
   I still see 10 courses even though I know there are 13 in the tested category.
 * I also only get Category ID to work as filter for Categories however on senseilms.
   com in documentation it says I should be able to write category description there.
 * Is there a specific order i need to write the parameters for it to work properly?
 * The shortcode look like this:[sensei_courses category=”974″ number=”50″ orderby
   =”name” order=”asc”]
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fshortcode-766%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Donna Peplinskie (a11n)](https://wordpress.org/support/users/donnapep/)
 * (@donnapep)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/shortcode-766/#post-13425551)
 * Hi Per,
 * I’m not able to reproduce any of the problems you reported. I was able to show
   50 courses, and was able to use the category ID, category slug and category name
   in the shortcode.
 * The first thing to check is that you’re using “straight” quotes around the parameters,
   as opposed to “curly” quotes.
 * If that’s fine, then the most likely culprit is a conflict with your theme or
   another plugin. Are you able to temporarily switch to another theme to see if
   that helps? I tested on Storefront.
 * If that doesn’t work, you could also try disabling other plugins to see if one
   of them is conflicting with Sensei LMS.
 *  Thread Starter [Per Olsson](https://wordpress.org/support/users/styrketrappan/)
 * (@styrketrappan)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/shortcode-766/#post-13430261)
 * Thanks yet again [@donnapep](https://wordpress.org/support/users/donnapep/)! 
   I should have figured this out, that I should of course have checked how the 
   page looked. I edit this particular page with Elementor and I had copy/pasted
   the shortcode from Gutenberg so in HTML mode it looked all spammed with span,
   classes and those kinds of things.
 * It works perfectly fine now!
 * Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Shortcode’ is closed to new replies.

 * ![](https://ps.w.org/sensei-lms/assets/icon-128x128.gif?rev=2914239)
 * [Sensei LMS - Online Courses, Quizzes, & Learning](https://wordpress.org/plugins/sensei-lms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sensei-lms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sensei-lms/)
 * [Active Topics](https://wordpress.org/support/plugin/sensei-lms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sensei-lms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sensei-lms/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Per Olsson](https://wordpress.org/support/users/styrketrappan/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/shortcode-766/#post-13430261)
 * Status: resolved