Profilfelder in Wordpress hinzufügen


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <!-- Code in functions.php einfügen fuegt die Felder Twitter und Facebook hinzu -->
  2.  
  3. function my_new_contactmethods( $contactmethods ) {
  4. // Add Twitter
  5. $contactmethods['twitter'] = 'Twitter';
  6. //add Facebook
  7. $contactmethods['facebook'] = 'Facebook';
  8.  
  9. return $contactmethods;
  10. }
  11. add_filter('user_contactmethods','my_new_contactmethods',10,1);
  12.  
  13.  
  14. <!-- Code in author.php einfügen -->
  15.  
  16. <?php echo $curauth->twitter; ?>
  17. <?php echo $curauth->facebook; ?>

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.