• Resolved geoffgraham

    (@geoffgraham)


    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.

    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

    (@vanbom)

    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, or
    The option to allow none student is set to ‘yes’.

    Thread Starter geoffgraham

    (@geoffgraham)

    Heck yeah, thanks @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 geoffgraham

    (@geoffgraham)

    All good now — thanks again! ??????????

    Plugin Contributor Younes

    (@vanbom)

    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.