MailChimp for WordPress: any way to display a form by identifying from its name rather than its ID? MailChimp for WordPress: any way to display a form by identifying from its name rather than its ID? wordpress wordpress

MailChimp for WordPress: any way to display a form by identifying from its name rather than its ID?


try override shortcode with your own function, in your function lookup the id by attribute you passed in like "name", then call the original function.

[updated per Shawn's request, here is a piece of code]

<?php $post = get_page_by_title( 'title', OBJECT, 'mc4wp-form' );if ( $post ) {    $id = $post->ID;    echo do_shortcode('[mc4wp_form id="$id"]');}?>