Generating Alto property ID using PHP –
-
We are using Property Hive with a feed from Alto.
Alto has a functionality to request bookings using their portal, but we need to insert the property ID into the HTML code to link it together.
The code I need to insert into the template files is:
<a href="#" class="btn btn-primary pf-request-viewing-button" data-property-id="17875098" style="outline: none;"›Request A Viewing</a›where data-property-id is the ID of the property, as defined by Alto.
<?php the_ID() ?> drops in the WordPress ID for the property.
<?php the_propertyID() ?> doesn’t work.A bit of digging shows that the perhaps the correct field to use is “_vebra_propertyid”
How would I go about dropping that link into the HTML code above?
The ‘Request a Viewing’ button on the linked page above doesn’t work, but if the correct property ID is loaded into the code it would work.
- This topic was modified 3 years, 6 months ago by . Reason: typo
- This topic was modified 3 years, 6 months ago by .
The page I need help with: [log in to see the link]
The topic ‘Generating Alto property ID using PHP –’ is closed to new replies.