yakup1981
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [Our Team by WooThemes] Adding new custom field doesn't workThank you for your help, it’s working now!
The problem was that i made a mistake by placing the code in two seperated files (functions.php and single.php).
You where right the could should be placed only in functions.php
I’m now trying to add the custom fields to the bio page.
Forum: Plugins
In reply to: [Our Team by WooThemes] Adding new custom field doesn't workI’ll try your solution again…
Forum: Plugins
In reply to: [Our Team by WooThemes] Adding new custom field doesn't workThe code snippets are seperated. The first part is a snippet from the functions.php. The second part is a snippet from a file within the currently selected theme.
Forum: Plugins
In reply to: [Our Team by WooThemes] Adding new custom field doesn't workThis 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?
Viewing 4 replies - 1 through 4 (of 4 total)