Advertisement
Guest User

bloglist

a guest
May 21st, 2013
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.76 KB | None | 0 0
  1. <div id="page_content">
  2. <!-- Snarf: using blog-list.php -->
  3. <?php
  4. $the_query = new WP_Query( array('post_type' => 'post', 'posts_per_page' => get_option('posts_per_page')) );
  5. ?>
  6. <?php if($the_query->have_posts()) : ?>
  7.  
  8. <?php while($the_query->have_posts()) : $the_query->the_post(); ?>
  9.     <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  10.        
  11.             <h2 class="postheader"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
  12.             </h2>
  13.             <div class="dater">
  14.                 <?php the_time('j M Y'); ?><div class="comments"><?php comments_popup_link('0', '1', '%'); ?></div>
  15.  
  16.             </div>
  17.        
  18.         <div class="entry">
  19.            
  20.             <?php the_content('Read on <span class="nav_arrow">&raquo;</span>'); ?></div>
  21.             <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', '' ), 'after' => '</div>' ) ); ?>
  22.  
  23.             <div class="clear"></div>
  24.    
  25.    
  26.     <?php include("postmeta.php"); ?>
  27.     <?php get_template_part("social_buttons"); ?>
  28.  
  29.     </div><!-- /#post-<?php the_ID(); ?> -->
  30.     <?php endwhile; ?>
  31.     <div class="pnavigation">
  32.         <p class="alignleft"><?php next_posts_link('<span class="nav_arrow">&laquo;</span> Older Entries'); ?>
  33.         </p>
  34.         <p class="alignright"><?php previous_posts_link('Newer Entries <span class="nav_arrow">&raquo;</span>'); ?>
  35.         </p>
  36.     </div><!-- /.pnavigation -->
  37.     <?php else : ?>
  38.    
  39.     <h4 class="center">Not Found</h4>
  40.     <p class="center">Sorry, but you are looking for something that isn&#39;t here.</p>
  41.  
  42.     <?php endif; ?>
  43.     <p class="clear"><a href="<?php echo serge_get_posts_page('url'); ?>">Show Posts in Grid View</a></p>
  44. </div> <!-- /#page_content -->
  45.  
  46. <?php
  47. if (function_exists("is_woocommerce")){
  48.   if (is_woocommerce()){
  49.     get_template_part("sidebar","shop");
  50.   } else {
  51.     get_sidebar();
  52.   }
  53. } else {
  54. get_sidebar();
  55. }
  56.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement