Support » Plugin: Dynamic Conditions » checkbox with “5” options and dynamic conditions?!

  • Resolved matti87



    I hope there is way to help. I don’t find the answer at the moment.

    So here is my situation..

    I want to create a dashboard with 3-5 products, all works perfect. I combined the product variants with different user roles. So I can say: this user has 3 products (3 user roles), the other one has 2 products (2 user roles). on the dashboard they only have access to their products, pretty cool. but now there is one thing I want to change.

    the “column” are always visible on the dashboard, also when they are empty (I use a infobox of elementor for the different products), the product is invisible. but also the column should be not visible. So I used the dynamic condition. But how can I say which columns, when I can’t use the user roles?! Anyway there are more than one user role for the members. Or is it possible? another idea?

    anyway I created an cpt where all products are checked with an acf checkbox (5 options = 5 products). all cpt items are coupled to diffeent authors and every author has only one unique item.

    best regards

    • This topic was modified 11 months ago by matti87.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author rtowebsites



    Maybe you can use NumberPosts as DynamicTag.

    Thread Starter matti87


    Hello rto,

    thank you, but that doesn’t work.

    Thread Starter matti87


    Now it works, here is my solution with a shortcode:

    function check_user_role( $atts, $content = null ) {
    $user_id = get_current_user_id();
    $user_info = get_userdata($user_id);
    if($user_info) {
    echo ' '.implode(', ', $user_info->roles).',';
    add_shortcode( 'user_role', 'check_user_role' );

    shortcode (shows the user roles):


    • This reply was modified 10 months, 3 weeks ago by matti87.
    Plugin Author crazypsycho


    Hello @matti87

    We have released our new plugin DynamicTags, which delivers some useful dynamic-tags, for example User Role.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘checkbox with “5” options and dynamic conditions?!’ is closed to new replies.