WP Manifestindependent plugin directory
manifest / content / cardcontact

Card Footer Shortcode for Connections

An extension for the [Connections Business Directory](https://connections-pro.com/) WordPress plugin that allows site visitors to email directory entries directly while keeping the entry's email address hidden from the user.

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/davidengland/cardcontact/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress plugin that outputs address, phone, and email for a Connections Business Directory entry, styled for footer use. Provides a simple shortcode for use in theme footers, widgets, or anywhere shortcodes are supported.

Features

  • Outputs address (linked to Google Maps), phone (tel:), and email (mailto:) for a Connections entry
  • All output is wrapped in a customizable class for easy CSS targeting
  • Each line (address, phone, email) is in its own div for precise spacing and styling
  • Safe output: all data is sanitized and escaped
  • Designed for use in footers, but can be used anywhere

Usage

Add the shortcode where you want the contact card to appear:

[cardfooter id="1" class="footer-contact-card" map_title="Get Directions"]
  • id (required): Connections entry ID
  • class (optional): CSS class for the wrapper div (default: footer-contact-card)
  • map_title (optional): Title attribute for the map link (default: Get Directions)

Example Output

<div class="footer-contact-card" id="footer-contact-1">
  <div class="footer-contact-address">
    <a href="https://maps.google.com/?q=123+Main+St,+City,+ST+12345" target="_blank" rel="noopener noreferrer" title="Get Directions">123 Main St, City, ST 12345</a>
  </div>
  <div class="footer-contact-phone">
    <a href="tel:+1234567890">(123) 456-7890</a>
  </div>
  <div class="footer-contact-email">
    <a href="mailto:info@example.com">info@example.com</a>
  </div>
</div>

Requirements

Installation

  1. Upload the plugin folder to /wp-content/plugins/.
  2. Activate the plugin in the WordPress admin.
  3. Use the [cardfooter] shortcode as described above.

Customization

  • Style the output using the .footer-contact-card class and its children in your theme's CSS.
  • You can override the class name via the class attribute in the shortcode.

License

GPLv2 or later. See LICENSE.txt for details.

Author

David E. England, Ph.D.


For issues or feature requests, please open an issue on GitHub.