Widget broken due to the_content filter
-
I have to hook siteorigin_panels_filter_content_enabled before calling dynamic_sidebar , and disable it forcefully beforehand, and re-enable it afterwards.
It’s overriding sidebar contents when it’s outside the loop, because it simply checks if the global $post exists , which doesn’t necessarily mean we are outputting post data yet.Example: calling dynamic_sidebar in the header, before content is displayed. Give that a try to see the issue.
- The topic ‘Widget broken due to the_content filter’ is closed to new replies.