• Resolved KZeni

    (@kzeni)


    I have a site which needed shortcode to be executed on the team member widget’s position & bio (the site has their position and bio set within their user profile so a shortcode needs to be entered into the widget to that info). Unfortunately, the current version of Livemesh SiteOrigin Widgets doesn’t run do_shortcode() on the team member output like it seems to be doing for other widgets.

    All I ask for is to have includes/widgets/lsow-team-members-widget/tpl/default.php updated so that:

    
    <h3 class="lsow-title"><?php echo esc_html($team_member['name']) ?></h3>
    
    <div class="lsow-team-member-position">
    
        <?php echo esc_html($team_member['position']) ?>
    
    </div>
    
    <div class="lsow-team-member-details">
    
        <?php echo wp_kses_post($team_member['details']) ?>
    
    </div>
    

    Is replaced with:

    
    <h3 class="lsow-title"><?php echo esc_html(do_shortcode($team_member['name'])) ?></h3>
    
    <div class="lsow-team-member-position">
    
        <?php echo esc_html(do_shortcode($team_member['position'])) ?>
    
    </div>
    
    <div class="lsow-team-member-details">
    
        <?php echo do_shortcode(wp_kses_post($team_member['details'])) ?>
    
    </div>
    

    Thank you for the great plugin!

Viewing 1 replies (of 1 total)
  • Plugin Author livemesh

    (@livemesh)

    Have incorporated the same. You should see the code in the new version. Thanks for the suggestion.

Viewing 1 replies (of 1 total)

The topic ‘Proposed Patch: Support shortcode in Team Member fields’ is closed to new replies.