• Resolved ziggynerja1

    (@ziggynerja1)


    Hello, I’m looking to create a “Contact Owner” button on each property page. I think I’ve worked out it’s the wp-property/templates/property.php page I must edit. All I need is the php to pull the attribute named “website”.

    As far as I know, the shortcode “[property_attribute attribute=website]” wouldn’t work in this case.

    Thank you!

    https://www.ads-software.com/extend/plugins/wp-property/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I believe, you can use WP-CRM plugin to add contact forms on property pages. Denali premium theme has built-in inquiries functionality.

    Thread Starter ziggynerja1

    (@ziggynerja1)

    That’s not particularly what I was looking for.

    I wanted to print one of the field attributes (price, area, bedrooms, bathrooms..etc) to somewhere of my choice within the single property pages(in my case a website address for each property).

    I figured out the PHP to pull the attribute from the database is:
    property.php
    <?php echo $property['attribute_name']; ?> (replace attribute_name)
    This is what I ended up with:
    <a href='<?php echo $property['Owners_Website']; ?>' title='ContactOwner'><img src="button.jpg" title="Contact" /></a>

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Pull a single property attribute’ is closed to new replies.