Created
January 18, 2015 19:31
-
-
Save shahadat014/7d47c25aafd316eb0683 to your computer and use it in GitHub Desktop.
To Get Author information
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php the_author(); ?> | |
| <?php echo get_avatar( get_the_author_email(), 'size here' ); ?> | |
| <?php echo the_author_link(); ?> | |
| <?php the_author_posts_link(); ?> | |
| <?php the_author_meta( $field, $userID ); ?> | |
| <?php the_author_meta('twitter'); ?> | |
| <?php the_author_description(); ?> | |
| <?php echo date("D M Y", strtotime(get_userdata(get_current_user_id( ))->user_registered)); ?> | |
| To add more social fields for author: | |
| function my_new_contactmethods( $contactmethods ) { | |
| // Add Twitter | |
| $contactmethods['twitter'] = 'Twitter'; | |
| //add Facebook | |
| $contactmethods['facebook'] = 'Facebook'; | |
| //here can be add more | |
| return $contactmethods; | |
| } | |
| add_filter('user_contactmethods','my_new_contactmethods',10,1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment