WordPress.org

Ready to get started?Download WordPress

Forums

Reusable Text Blocks
Widget output not using wpautop() - content is jumbled together (6 posts)

  1. rawb
    Member
    Posted 1 year ago #

    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/

  2. Hal Gatewood
    Member
    Plugin Author

    Posted 1 year ago #

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

  3. Hal Gatewood
    Member
    Plugin Author

    Posted 1 year ago #

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

  4. stabilimenta
    Member
    Posted 11 months 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!

  5. Hal Gatewood
    Member
    Plugin Author

    Posted 11 months ago #

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

  6. Hal Gatewood
    Member
    Plugin Author

    Posted 11 months ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.