Title: Author.php just won&#8217;t work
Last modified: August 18, 2016

---

# Author.php just won’t work

 *  Resolved [starry1](https://wordpress.org/support/users/starry1/)
 * (@starry1)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/)
 * Try as I might I can not understand how to get a working author profile page.
   I created author.php but any coding I use within it brings up nothing. I have
   searched and searched for an answer and came across this:
    [http://guff.szub.net/get-author-profile](http://guff.szub.net/get-author-profile)
 * But I still do not understand what I am supposed to do once the plugin is installed
   adding:
 * <?php get_author_profile(auth_ID); ?>
 * ID being 1, brought up nothing.
 * I am currently using this:
 * <?php include “header.php”; ?>
    <?php if(isset($_GET[‘author_name’]) || isset(
   $_GET[‘author’])) : if($_GET[‘author_name’]) : $curauth = get_userdatabylogin(
   $_GET[‘author_name’]); else : $curauth = get_userdata($_GET[‘author’]); endif;?
   >
 * <h3>You’re currently viewing <?php echo $curauth->user_firstname; ?> <?php echo
   $curauth->user_lastname; ?>’s page of posts:</h3>
 * <?php endif; ?>
 * With no effect.
 * I’d like a page which shows all users. Name, profile, possibly a pic etc on one
   page. Like this:
 * Name: Starry
    Level: 10 Posts: 50 AIM: xxx Profile: xxxx
 * Name: Sam
    Level: 3 etc…
 * I’m very confused and would like a straight forward answer as to where I have
   gone wrong please.
 * Many thanks in advance.

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

 *  [Michael Bishop](https://wordpress.org/support/users/miklb/)
 * (@miklb)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233914)
 * you don’t need to create the page, so much as use the write page feature.
    [http://codex.wordpress.org/Pages](http://codex.wordpress.org/Pages)
 *  [Michael Bishop](https://wordpress.org/support/users/miklb/)
 * (@miklb)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233915)
 * kafkaesqui is around, and that’s his plugin, so I’ll let him explain how to utilize
   it.
 *  Thread Starter [starry1](https://wordpress.org/support/users/starry1/)
 * (@starry1)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233916)
 * I wrote a page to use the feature in which does not work. I forgot to post it
   sorry.
 * [http://neo-ilove.com/neopets/?page_id=13](http://neo-ilove.com/neopets/?page_id=13)
 * I do know how to create pages and page templates but this one area is baffling
   me.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233917)
 * Paste the source for your author.php template here:
 * [http://paste.uni.cc](http://paste.uni.cc)
 * And reply back with the url you get. We’ll go from there.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233919)
 * Also, just to clarify: are you trying to set up an author.php, or a template 
   for an author Page? They are not the same.
 *  Thread Starter [starry1](https://wordpress.org/support/users/starry1/)
 * (@starry1)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233921)
 * Paste.uni.cc does not work for me I’ll post it here seeing as it’s short:
 * Author.php
    [http://paste.uni.cc/7498](http://paste.uni.cc/7498) [edit] it worked
   finally
 * I am trying do to do both I assume but since I have already created author.php
   I’m guessing it is the template that is the problem.
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233923)
 * The isset($_GET[‘author_name’]) stuff will not work because you don’t pass an
   author_name/author query to the Page. The posts will also not show up.
 * Basically what you have there is for setting up an author.php — that is a template
   for author queries. author.php is what you could call a primary template, like
   archive.php or single.php, and is used when someone queries your blog by author,
   such as
 * site.com/?author=1
    site.com/author/bob/
 *  Thread Starter [starry1](https://wordpress.org/support/users/starry1/)
 * (@starry1)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233935)
 * So if I then create links as such
 * neo-ilove.com?author=1
 * I will get a profile for my user??
 * How do I pass a user name to my profile page? I don’t understand that.
 *  [Kathy_P](https://wordpress.org/support/users/kathy_p/)
 * (@kathy_p)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233941)
 * The easiest way to pass a user name to the author template is to use one of the
   following template tags
    `<?php the_author_posts_link(); ?>` `<?php wp_list_authors();?
   >` `<?php list_authors(); ?>` somewhere else on your site, such as in The Loop
   or on your sidebar. (The first template tag mentioned can only be used in The
   Loop.)
 * However, the author template is only meant to display information for one author
   at a time. If you want to show _all_ your authors on the _same_ page, I think
   you will have to do something similar to [this thread](http://wordpress.org/support/topic/38644).
   I am working on this at the moment. If you want to see what mine looks like, 
   go [here](http://www.coldclimategardening.com/contributors-beta/). It needs some
   work with the formatting of it, but it is basically doing what I want it to.
 * But I have been having trouble with the same piece of code as you are in my author
   template, as described in [this thread](http://wordpress.org/support/topic/27554).
   It works for some authors and not others, and I don’t know why.
 *  Thread Starter [starry1](https://wordpress.org/support/users/starry1/)
 * (@starry1)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233946)
 * Oh thank you Kathy! That worked great! It’s now working with a list of authors
   at the top of the page and the current users profile underneath.
 * Thanks a bunch 😀
 *  [Kathy_P](https://wordpress.org/support/users/kathy_p/)
 * (@kathy_p)
 * [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233974)
 * Glad to be of help–I’ve certainly had a lot of help from others myself.

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

The topic ‘Author.php just won’t work’ is closed to new replies.

## Tags

 * [author](https://wordpress.org/support/topic-tag/author/)
 * [author.php](https://wordpress.org/support/topic-tag/author-php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 4 participants
 * Last reply from: [Kathy_P](https://wordpress.org/support/users/kathy_p/)
 * Last activity: [20 years, 11 months ago](https://wordpress.org/support/topic/authorphp-just-wont-work/#post-233974)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
