<?php
/* Template Name: Agent's Property*/
get_header();
?>
<div class="container">
<div class="row">
<?php
if(isset($_POST["getlist"]) && $_POST["getlist"]=="View Property List"){
$agentid = $_POST["agentid"];
}
$args = array( 'post_type' => 'testimonial', 'orderby' => 'date', 'order' => 'DESC', 'meta_key' => 'agent_associate', 'meta_value' => $agentid, 'posts_per_page' => -1);
$query = new WP_Query( $args );
while($query->have_posts()) : $query->the_post();
$postid = get_the_ID();
//$image_thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $postid ) );
//$image_full = wp_get_attachment_image_src( get_post_thumbnail_id( $postid ), array(500,500) );
?>
<div class="col-lg-4 col-md-4 col-sm-4 col-xs-12">
<div class="info">
<!--<span class="icons icon-best-price"><img src="https://easy.rentals/wp-content/uploads/2020/01/profit-copy.jpg" alt=""></span>-->
<h4>
<?php
the_title();
?></h4>
<!--<h6><?php the_field("email");?></h6>
<h6><?php the_field("phone_number");?></h6>
<h6><?php the_field("fax");?></h6>
<h6><?php the_field("address");?></h6>
<h6><?php the_field("city");?></h6>
<p><?php the_field("state");?> </p>-->
</div>
</div>
<?php endwhile;?>
</div>
</div>
<?php get_footer();?>