Adds the ability to easily enter and display contact information.
Navigate to the settings page by clicking on Settings on the left hand menu, and then the Contact Us option.
You can use the following function call to output information in your templates:
<?php if (function_exists('contact_us')) { contact_us('fax'); } ?>
Current available contact fields are: name, phone, fax, mobile, email, hours, location_address and mailing_address.
The last parameter passed to contact_us() determines whether the value is returned, by setting the value to false.
<?php $phone = contact_us('phone', '', '', '', true, '<b>', '</b>', false); ?>
The above code will fetch the phone number stored and wrap the response in bold tags.
If you require more customization that cannot be achieved using CSS, you can define your own template file.
To do this add the the attribute include to the shortcode tag, e.g. [contact type="form" include="myfile.php"].
This file should be placed within your theme directory and should include the processing and output of errors.
We suggest you use the contact.php file used by the plugin as a starting point / template.
Navigate to the settings page: Settings > Contact Us and select to enable the reCaptcha and fill out the appropriate keys.
Requires: 2.8.2 or higher
Compatible up to: 3.2.1
Last Updated: 2011-8-21
Downloads: 19,301
0 of 0 support threads in the last three weeks have been resolved.
Got something to say? Need help?