/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- 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; ?>
URL: http://www.wpbeginner.com/wp-tutorials/25-extremely-useful-tricks-for-the-wordpress-functions-file/