Include shortcode within descriptions
-
Hi, I have enabled functionality to include shortcode within category descriptions and it works great. Unfortunately because the plugin is rendered via a shortcode I would need to enable shortcode functionality within the shortcode. I’ve created a folder in my theme and copied
mctagmap_functions.phpto it. I searched for all instances of$mctagmap_description = '<span class="tagDescription">'and amended it from$mctagmap_description = '<span class="tagDescription">' . $tag->description . '</span>';to
$mctagmap_description = '<span class="tagDescription">' . $tag->description . do_shortcode($content) . '</span>';but it doesn’t run the nested shortcode. I may be going about this wrong but is anyone able to assist me?
The topic ‘Include shortcode within descriptions’ is closed to new replies.