Custom HTML Widget – Use shortcodes
-
Hi,
I have one instance of a website where I have a mega menu. In that mega menu I have implemented a custom shortcode.
[sf_categories parent=”2225″ columns=”4″]
On a MediaTemple server running php 5.xxx it works fine. When migrated to WP-Engine the shortcode does not fire. and instead of the result it does not call the shortcode. Is this some setting?
The shortcode in my functions.php file is
function sf_categories($atts){
$a = shortcode_atts( array(
‘parent’ => 0,
‘menu_class’ => ‘menu parent-menu’,
‘columns’ => 1), $atts );
gc_woo_cats($a[‘parent’],$a[‘menu_class’],$a[‘columns’]);
}
add_shortcode( ‘sf_categories’, ‘sf_categories’ );
Go to: https://savoirfaire1.wpengine.com/ and click on Surfaces…
thanks,
Paul
The page I need help with: [log in to see the link]
- The topic ‘Custom HTML Widget – Use shortcodes’ is closed to new replies.