• 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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Hal Gatewood

    (@halgatewood)

    There is no real reason why I didn’t include it. I’ll add a filter you can hook into if you’d like.

    Plugin Author Hal Gatewood

    (@halgatewood)

    I have added a filter and a checkbox on the widget to include wpautop. Look for version 1.3 soon.

    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!

    Plugin Author Hal Gatewood

    (@halgatewood)

    Hmm, interesting. I’ll add it to my list!

    Plugin Author Hal Gatewood

    (@halgatewood)

    @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]

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Widget output not using wpautop() – content is jumbled together’ is closed to new replies.