Show form from theme files

To show a sign-up form from the PHP files in your theme, you can use the `mc4wp_show_form()` function.

It takes an optional parameter which defines the ID of the form you would like to show. If you omit this parameter, your default form will be shown.

Example: Showing default form

if( function_exists( 'mc4wp_show_form' ) ) {
	mc4wp_show_form();
}

Example: Showing form with ID 100

if( function_exists( 'mc4wp_show_form' ) ) {
	mc4wp_show_form( 100 );
}

Ps. Were you looking how to show a form from your pages or posts instead?

Was this article helpful? ·