This is my code and it isn’t working ??
######### Functions.php #########
add_filter( 'woothemes_our_team_member_fields', 'my_new_fields' );
function my_new_fields( $fields ) {
$fields['misc'] = array(
'name' => __( 'Misc', 'our-team-by-woothemes' ),
'description' => __( '', 'our-team-by-woothemes' ),
'type' => 'text',
'default' => '',
'section' => 'info'
);
return $fields;
}
######### Frontend #########
add_filter( 'woothemes_our_member_fields_display', 'my_new_fields_display' );
function my_new_fields_display( $member_fields ) {
global $post;
if ( '' != $post->misc ) {
$member_fields .= '<li class="misc">' . $post->misc . '</li><!--/.misc-->' . "\n";
}
return $member_fields;
}
Anyone have any idea?