Assistance Needed with Role-Based Shortcodes in Elementor

[ad_1]

Hello WordPress Com,

I’m reaching out for help with implementing different shortcodes based on user roles in my Elementor editor setup.

As shown in the screenshot https://capture.dropbox.com/hSHfEofl6ukky9u6, I need to apply specific shortcodes based on whether the user is an admin or a premium member. Here’s the breakdown:

  • **If the user role is Admin:**
      [shortcode type="pile"]   [shortcode2 map="state"]   [shortcode3 type="pile"]

  • **If the user role is Premium Member:**
      [shortcode type="circle"]   [shortcode2 map="google"]   [shortcode3 type="pile"]

I’m looking for guidance on how to achieve this level of complexity within Elementor, while making sure the conditions work properly for role-based content display. Any suggestions or solutions from the community would be greatly appreciated!

Thank you in advance for your help.

[ad_2]
1 Comment
  1. You probably won’t be able too. You’re gonna need to code some php in order to do this.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer