How to link to the current User/Author Profile page?

if i am guessing it right you need to use <?php the_author_posts_link(); ?> function to link to the author page Note: Remember the function will only be useful if you want to link to the author of a post not a particular user Source: http://codex.wordpress.org/Template_Tags/the_author_posts_link

Add multiple images to author profile page

You can use this for an author photo: http://wordpress.org/extend/plugins/user-photo/ And this one might give you multiple images for the author: http://wordpress.org/extend/plugins/sem-author-image/ The final approach is to use a gallery plugin of some kind (NexGen Gallery Perhapse?) and create an album for each author, labeling it “John Doe”. Then, call the gallery in the authors.php file … Read more

How to link avatar and nickname to profile

This a short compilation of the multiple comments above, so that future visitors don’t have to read each and every one of them. First of all, the_author_posts_link() is a deprecated function since version 2.1, so get_author_posts_url() or the_author_posts_url() should be used instead http://codex.wordpress.org/Function_Reference/get_author_posts_url The the/get_author_posts_url() takes an argument that requires “ID of the author whose … Read more

Comments do not respect display_name setting, how to make plugin to overcome this

This code does the job with a filter. Doesn’t care what the comment says the author’s name is. Nothing particularly tricky about it. Should be self-explanatory. add_filter(‘get_comment_author’, ‘wpse31694_comment_author_display_name’); function wpse31694_comment_author_display_name($author) { global $comment; if (!empty($comment->user_id)){ $user=get_userdata($comment->user_id); $author=$user->display_name; } return $author; }

WordPress comments on users profile

I had to do accomplish something similar with an old client where they wanted a custom comment type to allow them to post editorial comments in the admin while a post is going through the editorial phase, but should not be visible on the front end. Since there are no custom comment types available in … Read more

How to add custom fields to my custom registration form

There’s wp_login_form() for such cases. It offers tons of hooks to extend it. // In your template wp_login_form( array( /* Args: refer to Codex page */ ) ); A more in-depth look at the filters, can be found here @GitHub WP Core source. ‘login_form_top’ – above login-username ‘login_form_middle’ – above login-submit ‘login_form_bottom’ – below login-submit … Read more

Buddypress Add unserialized Profile Fields in Members Loop [closed]

I believe xprofile_get_field_data is unserializing the data for you, but it is still in an array. xprofile_get_field_data can return an array or a comma-separated string. xprofile_get_field_data( $field, $user_id = 0, $multi_format=”array” ) @param string $multi_format How should array data be returned? ‘comma’ if you want a comma-separated string ‘array’ if you want an array