Guest User

Untitled

a guest
Oct 15th, 2014
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.77 KB | None | 0 0
  1. <?php
  2. /*
  3. * template name: Game Page
  4. */
  5. ?>
  6. <?php get_header(); ?>
  7. <div id="main_news_wrapper">
  8.   <div id="row">
  9.     <!-- Left wrapper Start -->
  10.     <div id="left_wrapper">
  11.       <div class="header">
  12.                 <?php
  13.                     $args = array(
  14.                         'post_type' => 'games',
  15.                         'orderby' => 'title',
  16.                         'order' => 'ASC'
  17.                     );
  18.                     $the_query = new WP_Query( $args );        
  19.                 ?>
  20.            <h2>
  21.               <?php echo orizon_breadcrumbs(); ?>
  22.             </h2>
  23.       </div>
  24.       <div id="post_wrapper">
  25.                 <?php if ( have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
  26.                
  27.                         <!-- Body Start -->
  28.                         <div id="body">  
  29.                        
  30.                             <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  31.                                 <header class="entry-header">
  32.  
  33.                                     <h1 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  34.  
  35.                                     <div class="entry-meta">
  36.                                     </div><!-- .entry-meta -->
  37.  
  38.                                 </header><!-- .entry-header -->
  39.  
  40.                                 <div class="entry-content">
  41.  
  42.                                     <p><img src="<?php the_field('image'); ?>" alt="Example image of <?php the_title(); ?>"></p>
  43.                                     <p><?php the_field('ip'); ?></p>
  44.                                     <p><?php the_field('description'); ?></p>
  45.  
  46.                                 </div><!-- .entry-content -->  
  47.  
  48.                             </article><!-- #post -->
  49.                            
  50.                         </div><!-- Body end -->
  51.                         <div class="clear"></div>
  52.  
  53.                 <?php endwhile; endif; ?>
  54.         <div class="clear"> </div>
  55.       </div>
  56.     </div>
  57.     <!-- Left wrapper end -->
  58.         <?php if ( function_exists('dynamic_sidebar') && is_active_sidebar('blog')) : ?>
  59.             <div id="right_wrapper">
  60.                 <?php dynamic_sidebar('blog'); ?>
  61.             </div>
  62.         <?php endif; ?>
  63.     <div class="clear"> </div>
  64.   </div>
  65. </div>
  66. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment