Integrate Constant Contact into your website with this full-featured plugin.
This plugin requires a Constant Contact account.
Don’t have an account? Constant Contact offers a free 60 day trial, so sign up and give this plugin a whirl!
Requires PHP 5.5
The Constant Contact for WordPress plugin is the best email marketing plugin for WordPress: integrate your website seamlessly with your Constant Contact account.
You can place a signup checkbox or list selection on your register page or use the signup widget anywhere in your website sidebar or PHP templates.
The plugin features Constant Contact Event Marketing functionality by allowing you to track events, registration, and registrants using the plugin. Simply navigate to Constant Contact > Events. Manage your events from inside WordPress!
The Form Designer is a form generation and design tool. The Form Designer allows users to generate unlimited number of unique forms and gives a wide variety of options that can be configured, including what fields to show in the signup form. There and tons of design options, including custom background images, border width, colors, fonts and much more.
To obtain support please use this link to the WordPress forums.
If you use the plugin and find it useful please make sure to come back and vote so other users know it works.
Want to see this plugin in your language? Join the translation team and help translate it!
To install the plugin follow the steps below:
ctct
to the /wp-content/plugins/
directory.To install the plugin follow the steps below:
ctct
to the /wp-content/plugins/
directory.Version 4.0 changes requirements for your server. If you upgrade and the upgrade doesn’t work for you, you can downgrade to the previous version of the plugin.
Why? Because Constant Contact’s official code requires PHP 5.5.
Ask your host about upgrading your server to 5.5. If they say no, chances are you should find a new host; 5.5 has long been available, and earlier versions of PHP are no longer secure.
Starting with Version 4.0, the Constant Contact Plugin requires PHP Version 5.5 or higher. Please contact your hosting provider support and ask them to upgrade your server.
We apologize for the inconvenience, but technical requirements changed.The good news? Once you upgrade your PHP version, your site will be faster and more secure.
You can use Constant Contact’s Sign-up Form and add the code to a widget or a page. This will allow your visitors to sign up for your newsletters.
This plugin requires a Constant Contact account.
Constant Contact is a great email marketing company — their rates are determined by the number of contacts in your list, not how many emails you send. This means you can send unlimited emails per month for one fixed rate! Give it a test run.
There is shortcode support for the Form Designer forms: [constantcontactapi]
with the following options:
'formid' => 0, // REQUIRED 'before' => null, 'after' => null, 'redirect_url' => false, 'lists' => array(), 'title' => '', 'exclude_lists' => array(), 'description' => '', 'show_list_selection' => false, 'list_selection_title' => 'Add me to these lists:', 'list_selection_format' => 'checkbox'
So to add a form, you would add the following in your content: [constantcontactapi formid="3"]
To show event details, you can use the [eventspot]
shortcode with the following options:
'id' => null, // Show a specific event; enter Event ID (found on the Events page) to use 'limit' => 3, // Number of events to show by default 'showdescription' => true, // Show event Description 'datetime' => true, // Show event Date & Time 'location' => false, // Show event Location 'map' => false, // Show map link for Location (if Location is shown) 'calendar' => false, // Show "Add to Calendar" link 'directtoregistration' => false, // Link directly to registration page, rather than event homepage 'newwindow' => false, // Open event links in a new window 'style' => true // Use plugin styles. Disable if you want to use your own styles (CSS)
Sample Event Shortcodes
[eventspot limit=3]
abc123
and also show the location details and map link, you would use: [eventspot id="abc123" location=true map=true]
[eventspot style=false]
If you want to change some code in the widget, you can use the WordPress add_filter()
function to achieve this.
You can add code to your theme’s functions.php
file that will modify the widget output. Here’s an example:
function my_example_function($widget) { // The $widget variable is the output of the widget // This will replace 'this word' with 'that word' in the widget output. $widget = str_replace('this word', 'that word', $widget); // Make sure to return the $widget variable, or it won't work! return $widget; } add_filter('constant_contact_form', 'my_example_function');
You can modify the widget output by hooking into any of the filters below in a similar manner.
To modify the Events widget output, start with the following code, again in your theme’s functions.php
file:
add_filter('cc_event_output_single', 'cc_event_output_single', 1, 2); function cc_event_output_single($output, $pieces = array('start'=> '','title'=>'','description'=>'','date'=>'','calendar'=>'','location' => '', 'end'=>'')) { // The pieces of each event are stored in the $pieces array // So you can modify them and cut and paste in what order you // want the pieces to display return $pieces['start'].'Description
'.$pieces['description'].$pieces['date'].$pieces['end']; }
Some example filters:
constant_contact_form
constant_contact_form_success
constant_contact_form_description
(after it has been modified by wpautop()
)constant_contact_form_errors
constant_contact_form_submit
(includes entire input
string)Good news, this plugin is free for everyone! The plugin is licensed under the GPL.
viagra-test-123
getAll()
methods getAllLists()
getAllContacts()
now returns Ctct\Exceptions\CtctException
on errorThis is a major update that requires PHP 5.5 or higher. This was needed in order to use the latest Constant Contact code.
onlyactive
enabled now shows a “The “{title}” event is no longer active.” message.directtoregistration
shortcode setting wasn’t working (“Link directly to registration page, rather than event homepage”)WP_DEBUG
is definedDeveloper Notes:
placeholder wasn't getting replaced properly when generating list HTML in
KWSContactList`$_POST
keys to avoid conflict with Ultimate Member pluginwp_clone()
functioninclude
attribute wasn’t respected in KWSContactList::outputHTML()
cc_event_map_link
is now a \Ctct\Components\EventSpot\EventSpot
objectcc_event_map_link
ctct_oauth_uri_base
filter to use your own oAuth domain. See the filter inline docs for more information.Thank you to WordPress.org maintainers, who updated the plugin submitting process.
<select>
inputs/examples/
directory that had potential security issue. Please upgrade!<?
opening PHP tag in nameparse.php
WP_Error
to a string and trim()
errorsWP_Error
response from the REST clientOAuthSignatureMethod_HMAC_SHA1
class nameconstant_contact_akismet_is_test
filter to tell Akismet not to train using test dataOPTOUT
statusSCRIPT_DEBUG
constant is defined and enabledctct
from constant-contact-api
blank
parameter to KWSContactList::outputHTML()
for select dropdowns that need an empty optionform-designer-functions.php
as CTCT_Form_Designer_Helper
classCTCT_Admin_Page
in admin. Saves memory and improves speed..live()
to .on()
<input>
fields to select events shortcode, instead of text. Should make it easier to grab the code.ctct_debug
for helpful debugging output, ctct_error
for errors or caught exceptions, and ctct_activity
for Constant Contact REST calls..updated
div
s were being removed by the plugin’s help tabs /docs/
directoryno_events_text
parameter for shortcode (and widget setting) – allows you to define what text is shown when there are no events.0
as the limit
parameter to show all eventsonlyactive
checkbox to widget (previously it was always on)onlyactive
checkbox to insert event shortcode generator