• I’ve been trying to get my name displayed on my author page at http://nerdnirvana.org/author/administrator/, but for some reason, it’s not happening. I am the administrator, and I’ve edited my profile at /wp-admin/profile.php, but it’s still saying “‘s Profile” when I go to my author page.

    Here’s what it looks like when I try to edit my profile: http://img292.imageshack.us/img292/4311/editprofileap9.png

    Here’s the code that I’m using the display “‘s Profile”: <?php echo $curauth->user_nicename; ?>'s Profile

    Of course, before that, I have:

    <?php
    	if(get_query_var('author_name')) :
    		$curauth = get_userdatabylogin(get_query_var('author_name'));
    	else :
    		$curauth = get_userdata(get_query_var('author'));
    	endif;
    ?>

    It works fine for any other authors, but ‘admin’

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Displaying name in author.php’ is closed to new replies.