Dynamic Contact Info Blocks
Manage your business details!
Install in
Dynamic Contact Info Blocks is a WordPress plugin that helps you effortlessly manage your business contact details including phone numbers, emails, addresses, and custom fields. It provides an easy way to update and display this information throughout your WordPress site using shortcode-like placeholders.
Features
- Easy management of contact information through WordPress admin interface
- Support for basic contact fields (phone, email, address)
- Custom fields support for additional information
- Clipboard copy functionality for easy placeholder copying
- Responsive admin interface
- Clean and organized code structure following WordPress Plugin Boilerplate standards
- Elementor integration: Works seamlessly with Elementor headers, footers, and widgets
- Elementor Dynamic Tags: Select DCIB fields directly in Elementor controls (requires Elementor Pro)
- WPForms Smart Tags: Use DCIB fields in WPForms notifications and confirmations (requires WPForms)
- Dynamic preview: Changes are reflected in real-time in Elementor frontend editor
- Phone validation: Validates and formats phone numbers with country-specific rules (uses libphonenumber)
- Global country selector: Set default country for phone number formatting and validation
- Link placeholders: Auto-generated tel:, mailto:, and map link variants for every field
- Maps URL override: Custom Google Maps or Apple Maps URL replaces auto-generated address link
- Email anti-spam: mailto: links encoded to deter harvesters
Elementor Integration
The plugin works seamlessly with Elementor page builder. Placeholders work in:
- Elementor text widgets
- Elementor headers and footers
- Any Elementor content area
Elementor Dynamic Tags
If you have Elementor Pro, you can use Dynamic Tags to select DCIB fields directly in Elementor controls:
- In any Elementor control that supports dynamic tags (e.g., text fields)
- Click the dynamic tag icon
- Look for the “Dynamic Contact Info” group
- Select “DCIB Contact Info” from the list
- Choose the field you want to display (Phone, Email, Address, or custom fields)
Changes are reflected in real-time in the Elementor frontend editor.
WPForms Smart Tags
If you have WPForms installed, you can use DCIB fields in form notifications and confirmations:
- In WPForms form builder, go to Settings > Notifications
- In the email message, click “Show Smart Tags”
- Look for DCIB tags like {dcib_phone}, {dcib_email}, {dcib_address}
- Custom fields will appear as {dcib_your_custom_key}
These tags will be replaced with the current DCIB field values when the email is sent.
Usage
Basic Fields
Use these placeholders in your posts, pages, or widgets:
(PHONE)– Displays your phone number(PHONE_LINK)– Outputs a tel: URI for click-to-call links(EMAIL)– Displays your email address(EMAIL_LINK)– Outputs a mailto: URI (auto-encoded against spam harvesters)(ADDRESS)– Displays your address(ADDRESS_LINK)– Outputs a Google Maps search URL (or custom URL if Maps URL field set)
Custom Fields
Create custom fields with unique identifiers in the format (CUSTOMFIELD). The value will be replaced wherever the identifier is used.
Phone, email, and address custom fields automatically get link variants — (CUSTOMFIELD_LINK) for tel:, mailto:, or map URLs.
Shortcode
You can also output any field via the shortcode:
[dcib key="PHONE"][dcib key="EMAIL"][dcib key="ADDRESS"][dcib key="YOUR_CUSTOM_KEY"]
Requirements
- WordPress 5.9 or higher
- PHP 8.1 or higher
License
This plugin is licensed under the GPL v2 or later.
Credits
Developed by Rotsen Mark Acob
Written by Joobi from the project's own listing. See the source page
1.0.4
- Official WordPress plugin repository listing
1.0.3
- Validate and normalize serialized phone
telvalues during settings sanitization.
1.0.2
- Fix false phone validation error on first save
- Revert back plugin URI to public GitHub repository
1.0.1
- Fixed “Requires at least” to use the major WordPress version and match the plugin header.
- Replaced the invalid Plugin URI with the author site.
- Registered a sanitize callback for the custom fields setting instead of a
pre_update_optionfilter. - Removed the recurring version migration that could overwrite saved phone numbers and custom fields.
- Custom field sanitizing now accepts the stored data format, so imports and programmatic updates no longer erase existing fields.
- Fixed the false “Phone number does not appear to be valid” error on the first save, where the not-yet-stored option was sanitized twice.
1.0
- Initial release
Follow this listing's changes (Atom feed)