Skip to content

Instantly share code, notes, and snippets.

@propertyhive
Created August 10, 2016 16:55
Show Gist options
  • Save propertyhive/4f150953c142f910d1de586005db4086 to your computer and use it in GitHub Desktop.
Save propertyhive/4f150953c142f910d1de586005db4086 to your computer and use it in GitHub Desktop.
<?php
/**
* Loop Price
*
* @author PropertyHive
* @package PropertyHive/Templates
* @version 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
global $property;
?>
<div class="address">
<?php echo $property->get_formatted_full_address(); ?>
</div>
<div class="bedrooms">
Bedrooms: <?php echo $property->bedrooms; ?>
</div>
<div class="price">
Price:
<?php echo $property->get_formatted_price(); ?>
<?php
if ($property->department == 'residential-sales')
{
echo ' <span class="price-qualifier">' . $property->price_qualifier . '</span>';
}
?>
</div>
@0161-Jon
Copy link

awesome, works a treat, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment