Title: [Plugin: Multiple content blocks] If MCB empty display default content
Last modified: August 20, 2016

---

# [Plugin: Multiple content blocks] If MCB empty display default content

 *  Resolved [candell](https://wordpress.org/support/users/candell/)
 * (@candell)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-multiple-content-blocks-if-mcb-empty-display-default-content/)
 * I am displaying some fallback content if no content has been placed into the 
   Multiple Content Block on any particular page. This works fine, however, two 
   editor textareas appear in the edit page in wordpress, see here
 * [http://s13.postimage.org/ks0btwzwn/Capture.png](http://s13.postimage.org/ks0btwzwn/Capture.png)
 * This will be down to how I am checking for content in the MCB and outputting 
   based on that. Is there a better way that will also ensure only one textarea 
   appears in wordpress?
 *     ```
       <?php
       $rhs_block = get_the_block('Right-hand-side');
       if ($rhs_block == "") :
       ?>
       <p>Fallback content if nothing is entering into the mcb in the editor</p>
       <?php
       else :
       echo $rhs_block;
       endif
       ?>
       ```
   
 * [http://wordpress.org/extend/plugins/multiple-content-blocks/](http://wordpress.org/extend/plugins/multiple-content-blocks/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Trendwerk](https://wordpress.org/support/users/trendwerk/)
 * (@trendwerk)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-multiple-content-blocks-if-mcb-empty-display-default-content/#post-2964362)
 * This problem should be fixed in the new completely rewritten 3.0. Templates and
   annotations should always work now.
 * Any suggestions or still having issues? Please tell us on Git!
    [https://github.com/trendwerk/multiple-content-blocks/](https://github.com/trendwerk/multiple-content-blocks/)

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Multiple content blocks] If MCB empty display default content’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/multiple-content-blocks.svg)
 * [Multiple content blocks](https://wordpress.org/plugins/multiple-content-blocks/)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-content-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-content-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-content-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-content-blocks/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Trendwerk](https://wordpress.org/support/users/trendwerk/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-multiple-content-blocks-if-mcb-empty-display-default-content/#post-2964362)
 * Status: resolved