Title: Blocky! &#8211; Additional Content Blocks
Author: Cameron Jones
Published: <strong>8 aoÃ»t 2015</strong>
Last modified: 10 septembre 2015

---

Recherche dâ€™extensions

![](https://ps.w.org/blocky/assets/banner-772x250.png?rev=1215366)

Cette extension **nâ€™a pas Ã©tÃ© testÃ©e avec plus de trois mises Ã  jour majeures de
WordPress**. Elle peut ne plus Ãªtre maintenue ou supportÃ©e et peut avoir des problÃ¨mes
de compatibilitÃ© lorsquâ€™elle est utilisÃ©e avec des versions de WordPress plus rÃ©centes.

![](https://ps.w.org/blocky/assets/icon-128x128.png?rev=1215305)

# Blocky! â€“ Additional Content Blocks

 Par [Cameron Jones](https://profiles.wordpress.org/cameronjonesweb/)

[TÃ©lÃ©charger](https://downloads.wordpress.org/plugin/blocky.1.2.8.zip)

 * [DÃ©tails](https://fr-be.wordpress.org/plugins/blocky/#description)
 * [Avis](https://fr-be.wordpress.org/plugins/blocky/#reviews)
 *  [Installation](https://fr-be.wordpress.org/plugins/blocky/#installation)
 * [DÃ©veloppement](https://fr-be.wordpress.org/plugins/blocky/#developers)

 [Support](https://wordpress.org/support/plugin/blocky/)

## Description

Have ever encountered the need to add new sections to your page content without 
needing to add divs to your content, editing your theme files or using a widget?
Are you a WordPress novice and have no idea what that previous sentance means? Fear
no longer â€“ Blocky! is here.

Blocky! allows you to add a new section to the content of your posts and pages without
needing to know any web coding. Simply click on the Â«Â Add New Content SectionÂ Â» 
button and get typing. Blocky! brings in a new WYSIWYG editor, allowing you to add
more content the same way you would with your main post content. Want to change 
the layout of your additional content sections? Simply add classes to your content
section and use your stylesheet to do the rest. Would you rather not wrap your content
in a `div`? Simply edit it in the settings page. Only want to use Blocky! on select
post types? You can choose which post types to enable Blocky! from the settings 
page. Blocky! also grabs the current setting for the WYSIWYG editors, meaning that
your Blocky! editors are consistent with the content editors even if you are using
a plugin such as TinyMCE Advanced that extends the capabilities of the editor.

For more advanced uses, use the `get_additional_content( $postID );` to return Blocky!â€™
s additional content as a multidimensional array with each section containing an
array with both the class and the content. See Â«Â Other NotesÂ Â» for more details.

If you like the plugin, please take the time to leave a review.

### Advanced Use Case

To use Blocky! without the content filter, use this template

Replace `<?php the_content();?>` with `<?php echo do_shortcode( get_the_content());?
>`

Where you want your additional content to display, add this code

    ```
    <?php $additional_content = get_additional_content();
    for( $i = 0; $i < count($additional_content); $i++ ) {
        echo $additional_content[$i]['content'];
    }?>
    ```

## Captures dâ€™Ã©cran

 * [[
 * The admin interface
 * [[
 * Blocky! settings page
 * [[
 * Blocky! in action

## Installation

#### From your WordPress dashboard

 1. Click `Add New` from the plugins page in your WordPress site
 2. Search for `Blocky! - Additional Content Sections`
 3. Click on install

#### Alternatively from wordpress.org

 1. Download the latest version of Blocky! â€“ Additional Content Sections
 2. Extract the files
 3. Upload the entire `blocky` folder to the `/wp-content/plugins/` directory.
 4. Activate the plugin through the â€˜Pluginsâ€™ menu in WordPress.

## FAQ

  Why canâ€™t I use the plain text editor or media uploader?

Unfortunately the way the WYSIWYG editor is activated for new sections it doesnâ€™t
support the plain text editor or media uploader for new sections. However if you
save your post any content sections that had been created will include both the 
media uploader and plain text editor.

  Why donâ€™t you just use a widget?

I have found that users find it easier if all the content for a page or post is 
confined to the editor for that page or post, not split across multiple pages.

  Why arenâ€™t my Blocky! content sections saved in the revisions?

Blocky! content sections are saved as post meta, which is different to post content.
Only the title and content are saved in revisions. This is something I will look
to explore in future versions.

  Can I get an unfiltered version of my post content?

Yes. Blocky! adds a filter to the `the_content()` function, but you can use `echo
get_the_content();` in your template to return your post content unfiltered. Blocky!
also includes a `get_additional_content()` function, which returns the additional
content sections as an array, so you can use your additional content sections in
more advanced uses such as in a sidebar, with nested tags, use the class input as
a data-attribute or to add additional filters to your additional content.

  Iâ€™m getting `stripos` and `preg_match_all` errors

If youâ€™re using Jetpackâ€™s Embed Shortcodes module and Blocky 1.2.1 or below you 
will get these errors when saving a post. Please update to at least 1.2.2.

## Avis

Il nâ€™y a aucun avis pour cette extension.

## Contributeurs & dÃ©veloppeurs

Â«Â Blocky! â€“ Additional Content BlocksÂ Â» est un logiciel libre. Les personnes suivantes
ont contribuÃ© Ã  cette extension.

Contributeurs

 *   [ Cameron Jones ](https://profiles.wordpress.org/cameronjonesweb/)

[Traduisez Â«Â Blocky! â€“ Additional Content BlocksÂ Â» dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/blocky)

### Le dÃ©veloppement vous intÃ©resseÂ ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/blocky/), consulter
le [SVN dÃ©pÃ´t](https://plugins.svn.wordpress.org/blocky/), ou sâ€™inscrire au [journal de dÃ©veloppement](https://plugins.trac.wordpress.org/log/blocky/)
par [RSS](https://plugins.trac.wordpress.org/log/blocky/?limit=100&mode=stop_on_copy&format=rss).

## Journal

#### 1.2.8

 * Changes sanitization to only be dependent on posts instead of the post type

#### 1.2.7

 * Fixes data not being saved

#### 1.2.6

 * Fixes another undefined index bug

#### 1.2.5

 * Setting priority so additional content is grouped with the main post content

#### 1.2.4

 * Fixes `undefined index` bug

#### 1.2.3

 * Direct link to setting page from plugins page
 * Setting Blocky! to be active on posts and pages by default when first installing
 * Text fixes
 * Additional conflict fixes
 * Sanitizing class as well as content

#### 1.2.2

 * Fixing conflict with Jetpackâ€™s Shortcode Embeds module

#### 1.2.0

 * Changed settings page heading tag to come into line with WP 4.3 standards
 * Updated to support translations

#### 1.1.3

 * Added filter to include Blocky! section content in Yoast SEOâ€™s Page Analysis

#### 1.1.2

 * Fixing `invalid argument for foreach` bug that would appear on seemingly random
   excerpts

#### 1.1.1

 * Applied `do_shortcode` filter to Blocky!â€™s content filter.

#### 1.1.0

 * Added `get_additional_content()` function to allow for more advanced uses of 
   Blocky!
 * Small readme fixes

#### 1.0.2

 * Fixing bug that would return errors if there were no content sections and `WP_DEBUG`
   is turned on.

#### 1.0.1

 * Fixing bug where meta box wouldnâ€™t close in certain situations

#### 1.0

 * Initial release

## MÃ©ta

 *  Version **1.2.8**
 *  Last updated **il y a 11 annÃ©es**
 *  Active installations **20+**
 *  WordPress version ** 4.2 ou plus **
 *  Tested up to **4.3.34**
 *  Language
 * [English (US)](https://wordpress.org/plugins/blocky/)
 * Tags
 * [admin](https://fr-be.wordpress.org/plugins/tags/admin/)[builder](https://fr-be.wordpress.org/plugins/tags/builder/)
   [class](https://fr-be.wordpress.org/plugins/tags/class/)[cms](https://fr-be.wordpress.org/plugins/tags/cms/)
   [css](https://fr-be.wordpress.org/plugins/tags/css/)
 *  [Vue avancÃ©e](https://fr-be.wordpress.org/plugins/blocky/advanced/)

## Notes

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/blocky/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/blocky/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/blocky/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/blocky/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/blocky/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/blocky/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/blocky/reviews/)

## Contributeurs

 *   [ Cameron Jones ](https://profiles.wordpress.org/cameronjonesweb/)

## Support

Quelque chose Ã  dire ? Besoin dâ€™aide ?

 [Voir le forum de support](https://wordpress.org/support/plugin/blocky/)

## Faire un don

Souhaitez-vous soutenir lâ€™avancement de cette extensionÂ ?

 [ Faire un don Ã  cette extension ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=WLV5HPHSPM2BG&lc=AU&item_name=Cameron%20Jones%20Web%20Development¤cy_code=AUD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)