[HOME]

Path : /home/easyrentals/public_html/old/xx/themes/easyrental/
Upload :
Current File : /home/easyrentals/public_html/old/xx/themes/easyrental/agent.php

<?php 
/* Template Name: Agent List*/
get_header();
?>

<div class="container">
<div class="row">
    <?php
		$args = array( 'post_type' => 'agents', 'orderby' => 'date', 'order' => 'DESC', '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-6 col-md-6 col-sm-6 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>
                <form method="post" action="<?php echo get_permalink(200); ?>">
                    <input type="hidden" name="agentid" value="<?php echo $postid;?>">
                    <input type="submit" name="getlist" value="View Property List">
                </form>
            </div>
        </div>
    <?php endwhile;?>    
                
</div>
</div>


<?php get_footer();?>