Show info to author only

Just compare display names: $currentuser = get_currentuserinfo(); if ( get_the_author() == $currentuser->displayname ) { // current user is the post author; do something } The get_the_author() function returns displayname, which should be able to be compared against the displayname parameter that is a part of the $currentuser object.

Author website URL

you need to assign $curauth and since you are not on an author archive but on a regular page you can use get_userdata function and pass the user ID like so: $curauth = get_userdata(1); //and then use echo $curauth->user_url; or if you are in the loop you can use the_author_link(); which will Displays the author’s … Read more

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

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

Plugin for an author bio popup box?

Try the WordPress Author Pop-up plugin. This plugin does the same thing as the the_author tag, displays the author name, only this time it’s linked to hidden layer (div). By clicking on the author link the hidden layer(div) pop’s up with author info gathered from the profile page, plus gravatar photo (if author email is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)