$lotsize = shandora_get_meta($post->ID, 'listing_buildingsize'); $sizemeasurement = bon_get_option('measurement'); ?> <li> <article id="post-<?php $post->ID; ?> " <?php post_class($status); ?> itemscope itemtype="http://schema.org/RealEstateAgent"> <header class="entry-header"> <div class="listing-hover"> <span class="mask"></span> <?php echo shandora_get_listing_hover_action($post->ID); ?> </div> <?php $terms = get_the_terms($post->ID, "property-type"); if ($terms && !is_wp_error($terms)) { foreach ($terms as $term) { echo '<a class="property-type" href="' . get_term_link($term->slug, "property-type") . '">' . $term->name . '</a>'; break; // to display only one property type } } ?> <?php if (current_theme_supports('get-the-image')) {
$badgeclr = shandora_get_meta($post->ID, $suffix . 'badge_color'); ?> <li> <article id="post-<?php the_ID(); ?> " <?php post_class($status . ' listing'); ?> itemscope itemtype="http://schema.org/AutoDealer"> <header class="entry-header"> <div class="listing-hover"> <span class="mask"></span> <?php echo shandora_get_listing_hover_action(get_the_ID()); ?> </div> <?php $terms = get_the_terms(get_the_ID(), "body-type"); if ($terms && !is_wp_error($terms)) { foreach ($terms as $term) { echo '<a class="body-type property-type" href="' . get_term_link($term->slug, "body-type") . '">' . $term->name . '</a>'; break; // to display only one property type } } ?> <?php if (current_theme_supports('get-the-image')) { get_the_image(array('size' => 'listing_small'));