Title: Shortcode Not Rendering
Last modified: April 18, 2024

---

# Shortcode Not Rendering

 *  Resolved [Geoff Graham](https://wordpress.org/support/users/geoffgraham/)
 * (@geoffgraham)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-rendering-7/)
 * Hey there!
 * I’m having an issue where the `[learndash_discord]` shortcode where it doesn’t
   seem to display the Discord buttons.
 * I’ve tried adding the shortcode to different pages, checking the front end with
   different user accounts with varying permissions.
 * I’ve checked the console and it’s clear of errors. And, unfortunately, the Logs
   are empty.
 * I’ve followed the setup instructions carefully and have successfully connected
   my Bot to LearnDash, so all is good there. I’ve also tried deactivating other(
   non-LearnDash) plugins and reverting to a default WP theme — I’m currently on
   the latest version of Kadence.
 * Interestingly, there appears to be two columns for the Learndash-Discord plugin
   on the Users screen.
 * ![](https://i0.wp.com/courses.local/wp-content/uploads/2024/04/Screenshot-2024-
   04-18-at-5.02.45%E2%80%AFPM.png?ssl=1)
 * Maybe there’s something to that? Any help you can offer would be great. Thanks!

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

 *  Plugin Contributor [Younes](https://wordpress.org/support/users/vanbom/)
 * (@vanbom)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-rendering-7/#post-17699571)
 * Hi there!
 * Firstly, thank you for using our plugin!
 * Regarding the issue you’re facing with the [learndash_discord] shortcode, it 
   appears that the display condition for the shortcode involves a combination of
   factors. Here’s a breakdown of the condition:
 * `( ets_learndash_discord_get_student_courses_id( $user_id ) && $mapped_role_name)
   
   || ( ets_learndash_discord_get_student_courses_id( $user_id ) && ! $mapped_role_name&&
   $default_role_name )|| ( $allow_none_student == 'yes' )
 * This condition essentially checks if:
 * The user is enrolled in any LearnDash courses AND has a mapped role name,
   The
   user is enrolled in any LearnDash courses, does not have a mapped role name but
   has a default role name defined, orThe option to allow none student is set to‘
   yes’.
 *  Thread Starter [Geoff Graham](https://wordpress.org/support/users/geoffgraham/)
 * (@geoffgraham)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-rendering-7/#post-17699636)
 * Heck yeah, thanks [@vanbom](https://wordpress.org/support/users/vanbom/)! This
   is great info. Let me work with it and I’ll follow up if I continue running into
   trouble.
 * Really appreciate your help — keep up the excellent work!
 *  Thread Starter [Geoff Graham](https://wordpress.org/support/users/geoffgraham/)
 * (@geoffgraham)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-rendering-7/#post-17699845)
 * All good now — thanks again! ⭐️⭐️⭐️⭐️⭐️
 *  Plugin Contributor [Younes](https://wordpress.org/support/users/vanbom/)
 * (@vanbom)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-rendering-7/#post-17701363)
 * That’s fantastic news! I’m really glad to hear that everything is working smoothly
   now.
 * If you have a moment, would you mind leaving a review or sharing your experience
   with others? It would help us tremendously and ensure that more people can benefit
   from our plugin.
 * Thanks again for your support!

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

The topic ‘Shortcode Not Rendering’ is closed to new replies.

 * ![](https://ps.w.org/connect-learndash-and-discord/assets/icon-256x256.png?rev
   =2750376)
 * [Connect LearnDash to Discord](https://wordpress.org/plugins/connect-learndash-and-discord/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/connect-learndash-and-discord/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/connect-learndash-and-discord/)
 * [Active Topics](https://wordpress.org/support/plugin/connect-learndash-and-discord/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/connect-learndash-and-discord/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/connect-learndash-and-discord/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Younes](https://wordpress.org/support/users/vanbom/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/shortcode-not-rendering-7/#post-17701363)
 * Status: resolved