This plugin works great and is exactly what I was looking for. However, adding a widget just outputs the block's content without running it through wpautop():
# text-blocks.php, line 151
<div class="text-block"><?php echo $block->post_content; ?></div>
This means all of the text just looks jumbled together when used as a widget. Was there a reason for not adding wpautop() in the output?
http://wordpress.org/extend/plugins/reusable-text-blocks/
There is no real reason why I didn't include it. I'll add a filter you can hook into if you'd like.
I have added a filter and a checkbox on the widget to include wpautop. Look for version 1.3 soon.
stabilimenta
Member
Posted 1 month ago #
Hi, just wanted to say thank you for this very useful plugin. I have one comment that would make it even better: add a checkbox or a parameter for turning wpautop off for the shorttags and template php calls. I'm having the opposite problem as rawb... I'm getting wpautop where I DON'T want them!
Hmm, interesting. I'll add it to my list!
@stabilimenta in plugin version 1.4.1 I added a second parameter to the shortcode 'plain' which doesn't add the extra parameters.
[text-blocks id=123 plain=true]