Sharedaddy fails after apply_filters('the_content'..)
-
Hi,
I created some shortcodes: tabs, accordions, slideshow, pricing tables. They are quite elaborated and can contain text: paragraphs, other shortcodes, videos etc. I use an additional tinyMCE editor to add content to the slides, the tab panel etc.
To print the content of the shortcode I have to pass it though:
$the_content = apply_filters('the_content', $the_content);
So I’m sure all the default filters (wp_autop, do_shortcode etc.) and the filters due to the themes or other plugins will be applied to the output.
Unfortunately, I guess because of these lines on Sharedaddy module:
// Don't allow flair to be added to the_content more than once (prevent infinite loops) $done = false; foreach ( $wp_current_filter as $filter ) { if ( 'the_content' == $filter ) { if ( $done ) return $text; else $done = true; } }
each time a shortcode has used in a post, Sharedaddy doesn’t display the sharing icons at the end of the post itself… is there a workaround to this or simply Sharedaddy is not compatible with
apply_filters('the_content'...
.TIA, Manuel ??
- The topic ‘Sharedaddy fails after apply_filters('the_content'..)’ is closed to new replies.