Conditional php code for property_map
-
Hi Steve,
Thank you for the plugin update, it’s working very well.
I have a question regarding the property map option on a single property page.
I am designing the page with tabs and the map shortcode is working very well.
but I would like to show the tab element of “Map” only when the Latitude and Longitude have been entered from the admin side.For example I am using the code below for the “Property Features”.
<?php
global $property;
$features = $property->get_features();
if ( !empty($features) ) { ?>
<input id=”tab1″ type=”radio” name=”tabs” checked>
<label for=”tab1″>Features</label>
<?php } ?>Could you kindly let me know a similar code for the “Property Map” that I can use?
Thank you.
Mani
The page I need help with: [log in to see the link]
- The topic ‘Conditional php code for property_map’ is closed to new replies.