WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Contact Details

Adds the ability to easily enter and display contact information.

How do I edit my contact details?

Navigate to the settings page by clicking on Settings on the left hand menu, and then the Contact Details option.

Can I add extra contact details fields?

Yes, it is possible to modify the contact detail fields using the contact_details filter.

add_filter('contact_details', function($details) {
    // Add a simple text input...
    $details['twitter'] = __('Twitter');
    // Add a new textarea...
    $details['bank'] = array(
        'label' => __('Bank'),
        'input' => 'textarea'
    );
    // Remove an existing field...
    unset(details['fax']);
    // You must always return the modified array...
    return $details;
});

What contact details can I store?

Current available contact fields are: phone, fax, mobile, email and address.

How do I include details in my template?

You can use the following function call to output details in your templates:

How do you fetch contact details without outputting the value?

The fourth parameter passed to contact_detail() determines whether the value is returned, by setting the value to false.

$phone = contact_detail('phone', '<b>', '</b>', false);

The above code will fetch the phone number stored and wrap the response in bold tags.

How can I customise the contact form?

If you require more customisation 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.

I suggest you use the contact.php file used by the plugin as a starting point / template.

Requires: 2.8.2 or higher
Compatible up to: 3.4.2
Last Updated: 2013-3-17
Downloads: 60,352

Ratings

4 stars
4.4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,2,2 100,1,1
100,1,1
100,1,1
100,1,1
0,1,0
100,1,1
100,1,1
100,2,2
100,1,1
100,1,1