Title: Pull a single property attribute
Last modified: August 20, 2016

---

# Pull a single property attribute

 *  Resolved [ziggynerja1](https://wordpress.org/support/users/ziggynerja1/)
 * (@ziggynerja1)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/pull-a-single-property-attribute/)
 * 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!
 * [http://wordpress.org/extend/plugins/wp-property/](http://wordpress.org/extend/plugins/wp-property/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Denys Kostin](https://wordpress.org/support/users/rotcod/)
 * (@rotcod)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/pull-a-single-property-attribute/#post-3526404)
 * 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](https://wordpress.org/support/users/ziggynerja1/)
 * (@ziggynerja1)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/pull-a-single-property-attribute/#post-3526408)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-property_c36510.svg)
 * [WP-Property - WordPress Powered Real Estate and Property Management](https://wordpress.org/plugins/wp-property/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-property/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-property/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-property/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-property/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-property/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [html](https://wordpress.org/support/topic-tag/html/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 2 participants
 * Last reply from: [ziggynerja1](https://wordpress.org/support/users/ziggynerja1/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/pull-a-single-property-attribute/#post-3526408)
 * Status: resolved