Origin commit
This commit is contained in:
19
templates/single-property/location.php
Executable file
19
templates/single-property/location.php
Executable file
@@ -0,0 +1,19 @@
|
||||
<?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; ?>
|
||||
Reference in New Issue
Block a user