Hello, here is a work-a-round for shortcodes. To do this you will need a custom_functions.php file:
1.) Create a widgitized sidebar that is called with a shortcode
Place in your custom_functions.php file:
//Registering the sidebar1
function ilc_register_sidebars1(){
register_sidebar(array(
'name' => 'Sidecode1',
'description' => 'Widgets in this area will be shown using [shortbar1]',
'before_widget' => '<div id="%1$s" class="%2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
}
add_action( 'init', 'ilc_register_sidebars1');
add_shortcode( 'shortbar1', 'shortbar_sc1' );
//Creating the shortcode output
function shortbar_sc1( $atts ) {
ob_start();
dynamic_sidebar('sidecode1');
$html = ob_get_contents();
ob_end_clean();
return $html;
}
Then, add to a page or post with [shortbar1] now
go to widget page and add post widget to the sidecode1 sidebar.
You will probably need a plugin like widget logic or Widget Logic Visual or display widgets so you can use the [shortbar1] more then once.
If you need more then one sidebar change all the 1’s to 2’s
except do NOT change these <div id=”%1$s” class=”%2$s”>
I hope this is helpful.