Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 25th, 2012  |  syntax: None  |  size: 1.13 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /*
  3. Template Name: Property
  4. */
  5. get_header(); ?>
  6.  
  7.                 <div id="primary">
  8.                         <div id="content" role="main">
  9.                                 <?php
  10.                                                         $args = array(
  11.  
  12.                         'post_type' => 'property',
  13.  
  14.                         'meta_query' => array(
  15.  
  16.                                 array(
  17.  
  18.                                     'key' => 'the_property_id',
  19.  
  20.                                     'value' => $_GET['the_property_id'],
  21.  
  22.                                     'compare' => 'LIKE'
  23.  
  24.                                 ),
  25.  
  26.                         );
  27.  
  28.                         query_posts($args);
  29.                                 ?>
  30.                                 <?php while ( have_posts() ) : the_post(); ?>
  31.  
  32.                                         <nav id="nav-single">
  33.                                                 <h3 class="assistive-text"><?php _e( 'Post navigation', 'twentyeleven' ); ?></h3>
  34.                                                 <span class="nav-previous"><?php previous_post_link( '%link', __( '<span class="meta-nav">&larr;</span> Previous', 'twentyeleven' ) ); ?></span>
  35.                                                 <span class="nav-next"><?php next_post_link( '%link', __( 'Next <span class="meta-nav">&rarr;</span>', 'twentyeleven' ) ); ?></span>
  36.                                         </nav><!-- #nav-single -->
  37.  
  38.                                         <?php get_template_part( 'content', 'single' ); ?>
  39.  
  40.                                         <?php comments_template( '', true ); ?>
  41.  
  42.                                 <?php endwhile; // end of the loop. ?>
  43.  
  44.                         </div><!-- #content -->
  45.                 </div><!-- #primary -->
  46.  
  47. <?php get_footer(); ?>