Any Content Shortcode

A snippet to add any content (including HTML, PHP) as a WordPress shortcode for output onto your WordPress site. Simply open up your theme (child theme) functions.php file and add the following function:- Then in your WordPress site’s content editor add the shortcode [anycontent] and your custom content will be outputted using ‘output buffering’. Example Use: Output X Theme Tags …