• Resolved digitalaffinity

    (@digitalaffinity)


    Hi Support Team,

    I’m running into an issue with the role-based shortcodes in Ultimate Member and would appreciate your help.

    I’ve set up my site with Ultimate Member and confirmed that the login and logout shortcodes work perfectly. However, when I try to restrict content using the [um_show_content roles="um_premium-reader"] shortcode (or any other valid UM role), the content doesn’t display – even when I’m logged in with a test user that definitely has that role.

    To confirm:

    • I’ve double-checked the user role assigned to the test account via the WordPress dashboard, and it’s correctly set to “um_premium-reader” (created by Ultimate Member).
    • Login/logout shortcodes work fine, so UM is definitely active and recognising sessions.
    • The issue only appears when using the roles="" attribute inside the [um_show_content] shortcode.
    • I’ve disabled other plugins, switched themes, cleared cache, and done all the usual troubleshooting steps, and the result is always the same – the content stays hidden even for users with the correct role.

    This issue is affecting my ability to show paywalled content to logged-in users, which is a critical feature for the site.

    Please can you advise.

    Thanks in advance for your support,
    Camilla

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

The topic ‘Role-Based Shortcodes Not Working’ is closed to new replies.