• hi all
    i have followed the tutorial to create the author.php so that i can display author’s articles on a author’s template. the tutorial pretty much prvided the codes , but it does not work well inside my theme. any help your be greatly appreciated.

    here is the messed up page: https://palestrasespiritas.org/rje/?author=2

    and here is the author.php code i am using for that page:

    ?php get_header();??>
    <div id=”content” class=”narrowcolumn”>
    <!– This sets the $curauth variable –>
    <?php
    if(isset($_GET[‘author_name’]))?:
    $curauth = get_userdatabylogin($author_name);
    else?:
    $curauth = get_userdata(intval($author));
    endif;
    ?>

    <h2>Posts by <?php echo $curauth->nickname;??>:</h2>

    </div>
    <?php get_sidebar();??>
    <?php get_footer();??>

  • The topic ‘author.php is breaking my theme’ is closed to new replies.