Multiple custom shortcodes? | WordPress.org

[ad_1]

Hi.

I’ve successfully built a custom shortcode to integrate WP Popular Posts output into the Mailpoet newsletter.

However, I’m running into an issue where I can’t seem to integrate two custom shortcodes into one newsletter. For instance, I have a custom shortcode:

[custom:news]

That returns exactly what I need it to.

And I’ve written the code so that it handles two custom shortcodes,

[custom:news][custom:videos]

but only the first one works in the newsletter.

Before I dive deeper into why both aren’t returning content, I just wanted to make sure that Mailpoet supports additional custom shortcodes in one email.

My suspicion is it should, because if I repeat one shortcode, a la:

[custom:news][custom:news]

I get both… but maybe it’s not calling it twice.

Thanks!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer