Newsletter Sign-Up for CleverReach Shortcode

Below, you’ll find a detailed guide on how to add the Newsletter Sign-Up for CleverReach Shortcode to your WordPress website, including its parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the Newsletter Sign-Up for CleverReach Plugin shortcode not to show or not to work correctly.

Before starting, here is an overview of the Newsletter Sign-Up for CleverReach Plugin and the shortcodes it provides:

Plugin Icon
Newsletter Sign-Up for CleverReach

"Newsletter Sign-Up for CleverReach is a WordPress plugin that seamlessly integrates your site with the CleverReach email marketing service. Enable quick and easy newsletter subscriptions!"

★★★☆✩ (13) Active Installs: 2000+ Tested with: 6.3.2 PHP Version: false
Included Shortcodes:
  • [cleverreach_signup]

Newsletter Sign-Up for CleverReach [cleverreach_signup] Shortcode

The CleverReach Signup shortcode is a beneficial tool that allows users to register on your site. This shortcode triggers the ‘register_shortcode’ function, which in turn activates the ‘show_form’ function. The form displayed is not returned immediately, but stored in a buffer using ‘ob_start’, and then retrieved with ‘ob_get_clean’. This process ensures smooth form display.

Shortcode: [cleverreach_signup]

Examples and Usage

Basic example – The shortcode ‘cleverreach_signup’ can be used to display a signup form. It does not require any parameters or attributes.

[cleverreach_signup /]

Advanced examples

1. Display the signup form with a specific title. The title parameter can be used to define the title of the signup form.

[cleverreach_signup title="Join our Newsletter" /]

2. Display the signup form with a specific ID. The ID parameter can be used to load a specific form by its ID.

[cleverreach_signup id="123" /]

3. Display the signup form with a specific ID and title. If the form with the specified ID is not found, it will try to load the form by its title.

[cleverreach_signup id="123" title="Join our Newsletter" /]

Please note that the actual functionality of the shortcode depends on the implementation of the ‘register_shortcode’ function in your CleverReach plugin.

PHP Function Code

In case you have difficulties debugging what causing issues with [cleverreach_signup] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode( 'cleverreach_signup', array( $this, 'register_shortcode' ) );

Shortcode PHP function:

function register_shortcode( $atts ) {
		ob_start();
		$this->show_form( false );

		return ob_get_clean();
	}

Code file location:

cleverreach/cleverreach/includes/Form/class-form.php

Conclusion

Now that you’ve learned how to embed the Newsletter Sign-Up for CleverReach Plugin shortcode, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *