Suggestion - Allows shortcodes in Magazine/Creative Banner Area

Simple, just wrap in do_shortcode after buffering function's echo output into a variable like so:

ob_start();  //begin buffer
mfn_opts_show( 'header-banner' ); //original line
$header_banner = ob_get_clean(); //save output to var
echo do_shortcode( $header_banner ); //execute any shortcodes and output result

For now I add these to my child theme by modifying files copied from /includes/header-top-area.php and /includes/header-creative.php

Comments

Sign In or Register to comment.