[mbhi] and [mbhi_hours] Bug
-
I am using Beaver Builder with this plugin, and I noticed that the [mbhi] and [mbhi_hours] shortcodes would not display anything when I inserted them into a Beaver Builder module.
I took a look at the code and noticed class-bhi-public.php includes templates to output the html, however it doesn’t capture and return their output, but echos them directly. This breaks the shortcode in certain cases. I was able to fix the issue by wrapping the require statements like so:
public function createShortcode($atts) { ... ob_start(); require 'partials/shortcode.php'; return ob_get_clean(); }
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘[mbhi] and [mbhi_hours] Bug’ is closed to new replies.