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

Advertising

Mine
Friday, February 3rd, 2012 at 1:42:25pm MST 

  1. <?php get_header();
  2.  
  3.         $curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
  4. ?>
  5.  
  6. <div class="fifteen columns clearfix">
  7.  
  8. <section id="main-content" class="ten columns alpha">
  9.  
  10.                         <?php if ( have_posts() ) { ?>
  11.  
  12.                                 <?php
  13.                                         /* Queue the first post, that way we know
  14.                                          * what author we're dealing with (if that is the case).
  15.                                          *
  16.                                          * We reset this later so we can run the loop
  17.                                          * properly with a call to rewind_posts().
  18.                                          */
  19.                                         the_post();
  20.                                 ?>
  21.                                
  22.  
  23. <h1 class="row">
  24.         <?php $author = get_the_author(); ?>
  25.         Browse Posts by <?php echo $curauth->display_name; ?>
  26. </h1>
  27.  
  28. <?php   
  29.        
  30.         rewind_posts();
  31.        
  32.         // Start The Loop!
  33.         while (have_posts()) : the_post(); ?>
  34.                
  35.         <?php get_template_part( 'element', 'excerpt' ); ?>
  36.                
  37. <?php
  38.         // Close the Loop
  39.         endwhile;
  40.        
  41. // No Posts were found, let's show a 404-ish message
  42. } else { ?>
  43.  
  44.         <article id="post-0" class="post error404 not-found">
  45.    
  46.         <header class="entry-header">
  47.           <h2 class="entry-title"><?php _e( 'Not Found', 'trusted-authority' ); ?></h2>
  48.                 </header>
  49.         <div class="entry-content">
  50.                         <p><?php _e( "I'm sorry, we couldn't find what you were looking for... Perhaps searching will help find a related post.", 'trusted-authority' ); ?></p>
  51.                         <?php get_search_form(); ?>
  52.                 </div><!-- .entry-content -->
  53.        
  54.     </article><!-- #post-0 -->
  55.  
  56.  
  57. <?php } ?>
  58. <?php if( function_exists( 'wp_pagenavi' ) ): ?>
  59.        
  60.     <nav class="post-nav">
  61.         <?php wp_pagenavi(); ?>
  62.     </nav>
  63.    
  64. <?php endif;?>
  65.  
  66. <?php get_template_part( 'element', 'after-posts-widget' ); ?>
  67.  
  68. </section>
  69.  
  70. <?php get_sidebar(); ?>
  71.  
  72. </div>
  73.  
  74. <?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.

worth-right