The BB shortcode is perhaps my fave addition to the new version
I was going through some testing to get ready for some new videos on the subject when I discovered some potential show-stoppers.
The primary one for this topic is that the BB shortcode is not honored in all themes in the widget areas, notably the WP Twenty Sixteen theme.
Create a new template/module/layout and save as such, global or not. Then add the BB shortcode for that to a text widget in 2016; all you see is the shortcode. Change to the BB theme or DWB and there is the layout/module, etc. However, the BB shortcode displays properly within the content of the 2016 page or post. The same can be said for the base Genesis theme; same as 2016.
This is just one of the issues that I have discovered while getting ready to create these new vids. The others have to do with how nested shortcodes (specifically tabs and accordions) behave; sometimes they work, and sometimes they donât, but thatâs the subject for another topic
This isnât actually an issue, it is how WordPress works out-the-box. By default, text widgets do not support shortcodes. Therefore, if you have never encountered this issue in the past, it is likely the theme youâve used includes the following snippet:
add_filter('widget_text', 'do_shortcode');
So if you add the above code to your child themes functions.php file, the shortcode should display your row/module.
Actually, WP does support shortcodes, or at least the Contact Form 7 one, out of the box in text widgets
Just to verify, I did a fresh install of WP 4.4.1 on my local XAMPP server. Didnât do anything else except install Contact Form 7. Pasted the shortcode for the contact form into a text widget, and there was contact form in the sidebar of the default Twenty Sixteen theme. Placing a BB shortcode there results in just the code being displayed.
I have seen the noted filter before and thought that I may need to use it, but I knew I had had them display before in the default WP themes.
Iâd just like to add to what Danny said above. CF7 adds the filter only when we use their shortcode. Try adding the CF7 shortcode together with the BB shortcode, youâll see both working fine.
strange. I added that code to functions file, and it still wouldnât work.
then I checked the box in text widget that says âAutomatically add paragraphsâ and it worksâŚ
Can you try disabling that option again, as it should work without it. Also, this isnât a BB Theme problem, WordPress out-the-box doesnât allow shortcodes in the Text widget.