Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

maybe author
Saturday, February 23rd, 2008 at 11:23:14pm MST 

  1. <?php
  2. /*
  3. Template Name: Author Template
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <div id="main-content">
  8. <div id="right-content-post">
  9.  
  10. <div id="post-entry">
  11. <!-- This sets the $curauth variable -->
  12. <?php
  13. if(isset($_GET['author_name'])) :
  14. $curauth = get_userdatabylogin($author_name);
  15. else :
  16. $curauth = get_userdata(intval($author));
  17. endif;
  18. ?>
  19.  
  20. <h2>About: <?php echo $curauth->nickname; ?></h2>
  21. <dl>
  22. <dt>Website</dt>
  23. <dd><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></dd>
  24. <dt>Profile</dt>
  25. <dd><?php echo $curauth->user_description; ?></dd>
  26. </dl>
  27.  
  28. <h2>Posts by <?php echo $curauth->nickname; ?>:</h2>
  29.  
  30. <ul>
  31. <!-- The Loop -->
  32. <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  33.   <li>
  34. <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>">
  35. <?php the_title(); ?></a>,
  36. <?php the_time('d M Y'); ?> in <?php the_category('&');?>
  37.   </li>
  38.  
  39.   <?php endwhile; else: ?>
  40.      <p><?php _e('No posts by this author.'); ?></p>
  41.  
  42.         <?php endif; ?>
  43. <!-- End Loop -->
  44. </ul>
  45. </div>
  46.  
  47. <?php get_sidebar(); ?>
  48.  
  49. <?php get_leftbar(); ?>
  50.  
  51. <?php get_footer(); ?>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

fantasy-obligation