Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- query_posts('propertytype=land&posts_per_page=4&paged=$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;?>
- <?php wp_reset_query(); ?>
- <div class="paging">
- <?php wp_pagenavi(); ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement