Advertisement
Guest User

Untitled

a guest
Jul 14th, 2014
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php /* Template Name: News Page */ ?>
  2. <?php get_header(); ?>
  3.  
  4. <div class="row">
  5.  
  6.         <!-- column 1 -->
  7.         <div id="menu" class="col-md-3">
  8.           <a href="/"><img class="logo" src="http://www.studionigroarch.com/sna_logo_gray.png"></a>
  9.  
  10.           <nav class="project-nav">
  11.           </nav>
  12.  
  13.  
  14.  
  15.           <?php get_sidebar(); ?>
  16.         </div>
  17.  
  18.  
  19.         <!-- column 2 -->
  20.         <div id="container" class="col-md-9">
  21.  
  22.                 <?php
  23.             $featured_args = array(
  24.             'post__in' => get_option( 'news' ),
  25.             'post_status' => 'publish',
  26.             'no_found_rows' => true,
  27.             'paged' => get_query_var('page')
  28.             );
  29.  
  30.             $featured = new WP_Query( $featured_args );
  31.                 ?>
  32. <?php if ( $featured->have_posts() ) : ?>
  33.  
  34. <!-- Add the pagination functions here. -->
  35.  
  36. <!-- Start of the main loop. -->
  37. <?php while ( $featured->have_posts() ) : $featured->the_post();  ?>
  38.                 <div class="projects-item" style="padding-bottom: 10px;">
  39.                         <a href="<?php $featured->the_permalink(); ?>">
  40.                         <?php $featured->the_post_thumbnail('thumbnail');
  41.                               $featured->set_post_thumbnail_size( 150 , 115 );
  42.                         ?>
  43.                         </a>
  44.                         <div style="width: 575px; float: right;">
  45.                         <span class="projects-title">
  46.                                 <a href="<?php $featured->the_permalink(); ?>">
  47.                                 <?php $featured->the_title(); ?>
  48.                                 </a>
  49.                         </span>
  50.                         <?php $featured->the_excerpt(); ?>
  51.                         </div>
  52.                 </div>
  53. <!-- the rest of your theme's main loop -->
  54.  
  55. <?php endwhile; ?>
  56. <!-- End of the main loop -->
  57.  
  58. <!-- Add the pagination functions here. -->
  59.  
  60. <div class="nav-previous alignleft"><?php next_posts_link( 'Older posts' ); ?></div>
  61. <div class="nav-next alignright"><?php previous_posts_link( 'Newer posts' ); ?></div>
  62.  
  63. <?php else : ?>
  64. <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  65. <?php endif; ?>
  66.  
  67.  
  68.                 <?php  
  69.                 wp_reset_query();
  70.                 ?>
  71.  
  72.         </div>
  73. </div>
  74. <?php get_footer(); ?>
  75.  
  76.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  77.     <script src="/wp-content/themes/blankslate/bootstrap.min.js"></script>
  78.   </body>
  79. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement