Return to Snippet

Revision: 33458
at October 8, 2010 22:21 by PM-Webdesign


Updated Code
<!-- Code in functions.php einfügen fuegt die Felder Twitter und Facebook hinzu -->

function my_new_contactmethods( $contactmethods ) {
// Add Twitter
$contactmethods['twitter'] = 'Twitter';
//add Facebook
$contactmethods['facebook'] = 'Facebook';

return $contactmethods;
}
add_filter('user_contactmethods','my_new_contactmethods',10,1);


<!-- Code in author.php einfügen -->

<?php echo $curauth->twitter; ?>
<?php echo $curauth->facebook; ?>

Revision: 33457
at October 8, 2010 22:21 by PM-Webdesign


Updated Code
<!-- Code in functions.php einfügen fuegt die Felder Twitter und Facebook hinzu -->

function my_new_contactmethods( $contactmethods ) {
// Add Twitter
$contactmethods['twitter'] = 'Twitter';
//add Facebook
$contactmethods['facebook'] = 'Facebook';

return $contactmethods;
}
add_filter('user_contactmethods','my_new_contactmethods',10,1);


<!-- Code in author.php einfügen -->

<?php echo $curauth->twitter; ?>
<?php echo $curauth->facebook; ?>

Revision: 33456
at October 8, 2010 22:19 by PM-Webdesign


Initial Code
<!-- Fügt die Felder Twitter und Facebook hinzu -->

function my_new_contactmethods( $contactmethods ) {
// Add Twitter
$contactmethods['twitter'] = 'Twitter';
//add Facebook
$contactmethods['facebook'] = 'Facebook';

return $contactmethods;
}
add_filter('user_contactmethods','my_new_contactmethods',10,1);

Initial URL
http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/

Initial Description

                                

Initial Title
Profilfelder in Wordpress hinzufügen

Initial Tags
wordpress

Initial Language
PHP