Posted By

PM-Webdesign on 10/08/10


Tagged

wordpress profilfelder


Versions (?)

Profilfelder in Wordpress hinzufügen


 / Published in: PHP
 

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

  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; ?>

Report this snippet  

You need to login to post a comment.