G2A Many GEOs
SHARE
TWEET

Untitled

a guest Dec 20th, 2011 214 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <aside>
  2.   <ul>
  3.     <?php
  4.  
  5.     // The Query
  6.     $temp_query = $wp_query;
  7.     $args = array(
  8.       'category_name' => 'faqs',
  9.       'paged' => $paged,
  10.       'posts_per_page' => 1,
  11.     );
  12.     $wp_query = new WP_Query( $args);
  13.  
  14.     // The Loop
  15.     if (have_posts()) :  ?>
  16.     <?php while (have_posts()) : the_post(); ?>
  17.    
  18.       <li>
  19.         <a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
  20.       </li>
  21.     <?php endwhile; ?>
  22.   </ul>
  23.   <?php if ($wp_query->max_num_pages > 1) : ?>
  24.   <nav>
  25.     <ul>
  26.       <li>More FAQs:</li>
  27.       <li><?php previous_posts_link('Previous') ?></li>
  28.       <li><?php next_posts_link('Next') ?></li>
  29.     </ul>
  30.   </nav>
  31.   <?php endif; ?>
  32.   <?php $wp_query = $temp_query; ?>
  33.   <?php endif; ?>
  34. </aside>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top