
Hi,
I am trying to add extra fields to the user profiles and I don`t want to use a plugin for it.
I found several codes for that but they all didn´t add the fields when added to CMS Code field in Themler.
I now tried a plugin to add code to the functions.php and it turns out the code does work...only not through the Themler field
Example Code:
function modify_contact_methods($profile_fields) {
// Add new fields
$profile_fields['twitter'] = 'Twitter Username';
$profile_fields['facebook'] = 'Facebook URL';
$profile_fields['gplus'] = 'Google+ URL';
return $profile_fields;
}
add_filter('user_contactmethods', 'modify_contact_methods');
I want to get rid of the additional plugin again and have that work through themler. Any ideas on that?
Thanks in advance!
Hi, I am trying to add extra fields to the user profiles and I don`t want to use a plugin for it. I found several codes for that but they all didn´t add the fields when added to CMS Code field in Themler. I now tried a plugin to add code to the functions.php and it turns out the code does work...only not through the Themler field Example Code: function modify_contact_methods($profile_fields) { // Add new fields $profile_fields['twitter'] = 'Twitter Username'; $profile_fields['facebook'] = 'Facebook URL'; $profile_fields['gplus'] = 'Google+ URL'; return $profile_fields; } add_filter('user_contactmethods', 'modify_contact_methods'); I want to get rid of the additional plugin again and have that work through themler. Any ideas on that? Thanks in advance!