• The Multiple Content Blocks plugin is pretty cool, but for all my content, it always encloses it in <p> paragraph tags. How do I keep it from doing that? I just want it to insert my content and not add any tags.

    If you know anything about html specifications, you know that certain element tags are not allowed within paragraph tags. Thus, this greatly limits the content that you can put in your content blocks.

    Does anyone know how? I dont see anything in the plugin code that adds the paragraph tags.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi! I would be greatly interested if you found a solution for this issue. I have just tried to install the ps-disable-auto-formatting plugin, but it doesn’t seem to work for MCB…
    Multiple Content Blocks is one of the greatest plugins for WP (a Must Have if you want to use WordPress as a CMS), but please give me a fix for those F…g <p> tags !!!

    I’ve come up with a workaround for this problem, at least until the plugin is updated. On line 135 of /wp-content/plugins/multiple-content-blocks/multiple_content.php I’ve added:

    $content = str_replace("\r","<br/>",$content);

    It’s a little funky, because it sometimes adds an extra line break where it doesn’t need to, but switching between WYSIWYG and HTML views seems to fix this.

    Hope it helps.

    Thanks, I will give a try to your “funky” method. In fact, “ps-disable-autoformatting” works with MCB if you stay in html view, but I can’t say that to my customers. I also tried the “nowpautop” plugin, but I m not absolutely satisfied with it because i want to keep the <p> option.

    Let me explain my exact issue:
    I have made a combination of MCB and the great “NivoSlider light” plugin to easily manage galleries in pages:
    <div class="nivoSlider"><?php the_block('gallery'); ?></div>
    (example: http://www.sanaryvilla.fr/)
    With this code, all i would have to do is inserting images in my WYSIWYG to create a pretty slideshow…if only auto <p> tags were disabled for this particular bloc!

    Ok I finally got satisfaction with this plugin:
    WP-No-Format
    Seems to work perfectly!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Multiple content blocks] Remove paragraph tags around my content?’ is closed to new replies.