[Plugin: MailChimp Widget] subscribe form on page using shortcode
-
Hi
I am trying to display the widget on a page (also using it on the sidebar elsewhere too), using the_widget().
The code below gives me an input form and empty submit button and probably posts to no actual list.
<?php function chimplocals() { //return "testing"; ob_start(); the_widget('NS_Widget_MailChimp'); $output = ob_get_contents(); ob_end_clean(); return $output; } add_shortcode('chimplocals', 'chimplocals'); ?>
WordPress function definition says
the_widget($widget, $instance, $args);
can you help with what the instance and args should be to call this?Is there a better way to do what I am trying to do?
Thanks
https://www.ads-software.com/extend/plugins/mailchimp-widget/
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘[Plugin: MailChimp Widget] subscribe form on page using shortcode’ is closed to new replies.