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)?
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.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
WordPress® is a registered trademark of the WordPress Foundation, and WooCommerce® is a registered trademark of WooCommerce, Inc. MainWP is an independent product and is not affiliated, associated, or endorsed by the WordPress Foundation, WooCommerce, Inc., or Automattic Inc., except where noted under the Jetpack® API and Trademark License Agreement. All product names, logos, and brands are property of their respective owners and are used for identification purposes only.