Using Shortcodes in Reports

On the site where MainWP is installed, we have defined some shortcodes.

One of these is [year], which simply returns the current year.

We can use this on pages and posts and it works just fine.

However, when used in a MainWP report, the actual shortcode gets displayed. Is there a way to get the shortcode to be evaluated and have the proper content shown?

Is there a MainWP shortcode(s) to create a date in the form yyyy-mm-dd (2022-04-05)?

Thanks.

@DigitalMaestro Have you added the “Shortcodes” here:

For external [short-codes] created by yourself or on another plugin, you will need to follow this KB Article to create a custom MainWP Report Template. You then may use the do_shortcode() WP method in order to display the data.

<?php echo do_shortcode( ‘[gallery]’ ) ?>

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.