• Resolved HFVWEBDESIGN

    (@federicoventura)


    Hi guys,

    The following code is not working

    Hides the e-mail address, but the group member does not return the e-mail address, displays this “email_address;?>”

    what is the error?

    
    <div class="custom-field-wrapper">
      <span class="js-bold"><?php echo __('Email Address', 'js-jobs') . ':&nbsp;'; ?></span>
      <?php echo do_shortcode('[groups_member group="resume"]
       <span class="get-text"><?php echo $myresume->email_address; ?></span> 
      [/groups_member]' ); ?>
    </div>
    

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter HFVWEBDESIGN

    (@federicoventura)

    Hi,

    I solved the problem with this code, it was actually easy

    <div class="custom-field-wrapper">
                                        <span class="js-bold"><?php echo __('Email Address', 'js-jobs') . ':&nbsp;'; ?></span>
                                        
                                        <?php echo do_shortcode('[groups_member group="resume"]
                                        <span class="get-text">
                                       '.$myresume->email_address.'
                                        </span> 
                                        [/groups_member]');?>
                                        
                                        </div>
    

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘Short code in templates does not work’ is closed to new replies.