tomaraa
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Fixing WordPress
In reply to: My author.php loop isn’t working rightany ideas… would greatly be appreciated
Forum: Fixing WordPress
In reply to: My author.php loop isn’t working rightsorry.. I am new to posting here and wasn’t sure how to add the code… the first post was regular ole copy and paste.
sorry about that
Forum: Fixing WordPress
In reply to: My author.php loop isn’t working right<?php get_header(); ?> <div id="postbody"> <!-- This sets the $curauth variable --> <?php if(isset($_GET['author_name'])) : $curauth = get_userdatabylogin($author_name); else : $curauth = get_userdata(intval($author)); endif; ?> <h2><?php echo $curauth->nickname; ?></h2> <dl> <dt></dt> <dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd> <dt></dt> <dd><?php echo $curauth->user_description; ?></dd> </dl><p> <h2>Posts:</h2> <ul> <!-- The Loop --> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <li> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"> <?php the_title(); ?></a>, <?php the_time('d M Y'); ?> in <?php the_category('&');?> </li> <?php endwhile; else: ?> <p><?php _e('No posts by this author.'); ?></p> <?php endif; ?> <!-- End Loop --> </ul> </div> <?php get_sidebar(); ?> <?php get_footer(); ?> [edit]Including Profile Information
Viewing 3 replies - 1 through 3 (of 3 total)