• Resolved Anonymous User 7903281

    (@anonymized-7903281)


    I have blocks of WP disabled and use a pagebuilder WPBackery. How do I add the mailchimp archive?

Viewing 1 replies (of 1 total)
  • Plugin Author Bernhard Kau

    (@kau-boy)

    Hi @ibaan,

    this is specifically a (Gutenberg) block plugin. It was never my goal to also have it as a shortcode as well, as this would go against it being a Block Only Plugin.

    I’m not really familiar with WP Bakery. There might be a plugin/extension you can install to use Gutenberg blocks in your code. This would probably the best approach, if something like this exists.

    If not, you could download version 1.0.3 of the plugin, that still has the settings page: https://www.ads-software.com/plugins/campaign-archive-block-for-mailchimp/advanced/

    You could then add this code to a plugin (or your functions.php file) to create your own shortcode:

    add_shortcode(
    	'cabfm',
    	function () {
    		return (new CABFM\Blocks\CampaignArchive())->render_block([
    			'itemsToShow' => 7,
    			'campaignTitle' => 'Mail Archive',
    			'displayDate' => true,
    			'displayTime' => true,
    			'displaySender' => true,
    		]);
    	}
    );

    You can then add it to a page using this shortcode:

    [cabfm]

    As an alternative, you can use the functionality provided by Mailchimp to embed a campaign archive, which is rather limited: https://mailchimp.com/en/help/add-an-email-campaign-archive-to-your-website/

Viewing 1 replies (of 1 total)
  • The topic ‘shortcode’ is closed to new replies.