Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Premises
- */
- ?>
- <?php get_header(); ?>
- <div id="content_sec">
- <div class="inner">
- <?php if ( function_exists('yoast_breadcrumb') ) {
- yoast_breadcrumb('<p id="breadcrumbs">','</p>');
- } ?>
- <!-- Column 1 -->
- <div class="col1">
- <div class="heading">
- <h1 class="colr">Industrial & Offices Premises</h1>
- </div>
- <!-- Post -->
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- query_posts('propertytype=industrial,offices&posts_per_page=4&. $paged'); ?>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>`
- <div class="post">
- <div class="thumb"><a href="<?php the_permalink(); ?>">
- <?php $image_id = get_post_thumbnail_id();
- $image_url = wp_get_attachment_image_src($image_id,'large');
- $image_url = $image_url[0]; ?>
- <img src="<?php echo $image_url; ?>" width="202" height="140"></a></div>
- <div class="desc">
- <h6><?php the_title(); ?> <?php echo get_custom_field('Sq m'); ?> sq ft (<?php echo get_custom_field('Sq ft'); ?> sq m)</h6>
- <p class="txt">
- <?php the_excerpt(); ?>
- </p>
- <a href="<?php the_permalink(); ?>" class="buttontwo">Read More</a>
- </div>
- </div>
- <?php endwhile;endif;?>
- <div class="paging">
- <?php wp_pagenavi(); ?>
- </div>
- </div>
- <?php include(TEMPLATEPATH . "/property-sidebar.php"); ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement