Author.php just won’t 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:
https://guff.szub.net/get-author-profileBut 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: xxxxName: 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.
- The topic ‘Author.php just won’t work’ is closed to new replies.