Title: pymarkley's Replies | WordPress.org

---

# pymarkley

  [  ](https://wordpress.org/support/users/pymarkley/)

 *   [Profile](https://wordpress.org/support/users/pymarkley/)
 *   [Topics Started](https://wordpress.org/support/users/pymarkley/topics/)
 *   [Replies Created](https://wordpress.org/support/users/pymarkley/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/pymarkley/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/pymarkley/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/pymarkley/engagements/)
 *   [Favorites](https://wordpress.org/support/users/pymarkley/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Our Team by WooThemes] Call Custom Field in Template](https://wordpress.org/support/topic/call-custom-field-in-template/)
 *  Thread Starter [pymarkley](https://wordpress.org/support/users/pymarkley/)
 * (@pymarkley)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/call-custom-field-in-template/#post-4816490)
 * I also have the custom field function as well. That all is working and I can 
   add info to the field in the admin area.
 *     ```
       // Add Custom Fields to team member page
   
       add_filter( 'woothemes_our_team_member_fields', 'my_new_fields' );
       function my_new_fields( $fields ) {
           $fields['expertise'] = array(
                   'name'              => __( 'Expertise', 'our-team-by-woothemes' ),
                   'description'       => __( 'Expertise Info', 'our-team-by-woothemes' ),
                   'type'              => 'text',
                   'default'           => '',
                   'section'           => 'info'
                 );
                 return $fields;
                 }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Our Team by WooThemes] Call Custom Field in Template](https://wordpress.org/support/topic/call-custom-field-in-template/)
 *  Thread Starter [pymarkley](https://wordpress.org/support/users/pymarkley/)
 * (@pymarkley)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/call-custom-field-in-template/#post-4816487)
 * Thanks for the reply. I have my function as such.
 *     ```
       add_filter( 'woothemes_our_member_fields_display', 'my_new_fields_display' );
       function my_new_fields_display( $member_fields ) {
           global $post;
                 $expertise = esc_attr( get_post_meta( $post->ID, '_expertise', true ) );
                 if ( '' != $expertise ) {
                 $member_fields .= '<li class="expertise">' . $expertise . '</li><!--/.expertise-->' . "\n";
                 }
                 return $member_fields;
                 }
       ```
   
 * I put `<?php echo $expertise; ?>` in my tpl string and nothing is displayed. 
   Only the %%-%% entries. Here is my template function.
 * function new_team_member_template( $tpl ) {
    $tpl = ‘ <div itemscope itemtype
   =”[http://schema.org/Person&#8221](http://schema.org/Person&#8221); class=”%%
   CLASS%%”> <div class=”flip-container” ontouchstart=”this.classList.toggle(\’hover\’);”
   > <div class=”flipper”> <div class=”front”> %%AVATAR%% %%TITLE%% <div id=”team-
   member-%%ID%%” class=”team-member-infoicon” itemprop=”description”> <img class
   =”infoicon” src=”/wp-content/uploads/2014/04/i-logo.jpg”> </div> </div> <div 
   class=”back”> %%TITLE%% <div class=”team-info”>EXPERTISE: **<?php echo $expertise;?
   >** <P>CONNECT: <P>VCARD: </div> [<img class=”team-learn-more” src=”/wp-content/uploads/2014/04/learnmorel-button.jpg”>](https://wordpress.org/support/users/pymarkley/replies/?p=%%ID%%)
   <div id=”team-member-%%ID%%” class=”team-member-infoicon” itemprop=”description”
   > <img class=”infoicon” src=”/wp-content/uploads/2014/04/i-logo.jpg”> </div> 
   </div> </div> </div>
 *  </div>’;
    return $tpl; }
 * `

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