Opal-Estate-Pro/templates/single-property/location.php

20 lines
403 B
PHP
Raw Permalink Normal View History

2019-09-10 06:27:33 +02:00
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
global $property, $post;
$locations = $property->getLocations();
if ( !empty($locations) ) :
?>
<?php foreach ($locations as $location) : ?>
<a href="<?php echo esc_url( get_term_link( $location ) ); ?>" title="<?php echo esc_attr( $location->name ); ?>">
<?php echo esc_html( $location->name ); ?>
</a>
<?php endforeach; ?>
<?php endif; ?>