Multiple content blocks

mcb_0

button_download


Why

With this plug-in, you can use more than one content “block” on a template. You only have to insert one tag inside the template, so it’s easy to use.

I made this plug-in because I think it is essential to any CMS to be able to use more content blocks in one template. I really missed this functionality in Wordpress and I did not find a decent plug-in for this, so I made one myself.

What is a “multiple content block”?

When you make a Wordpress template, you can show the content of the current page by using the code the_content();, but when you have (for example) several columns, you cannot split these in different content “blocks”.

You want your clients to edit the content themselves without screwing up any code. This is where our plug-in comes in.


Installation

To install this plug-in, download the files and extract them to your plug-ins folder. You can also download this plug-in by searching in Wordpress.

For tips on how to use this plug-in, scroll to How to use.


Screenshots

mcb_1

Img 1. How to use


mcb_2

Img 2. How to specify the content


How to use

We made our plugin so it’s easy to use for developers.

You can create a new content block in your template by using for example this code:

mcb_3

You can not use spaces in this name.

You can place this in a div to style it however you want to.

Every page that uses this template now has an editor on it with ‘name’ above it. You can use as many as you like.

Edit this content?

To edit this content or place it in a variable to do whatever you want with it, you can use get_the_block(blockname) instead of the_block(blockname).


Change log

= 1.4.1 =

* Fixed a small bug when using MCB in Posts

= 1.4 =
* Now supports child themes!
* Fixed small php bug

= 1.3.1 =
* Small bug fix when using get_the_block
* Fixed for WP 2.9

= 1.3 =
* Replaced the_block(‘blockname’,false) by get_the_block(‘blockname’)

= 1.2 =
Alot of bugfixes and small things

* You can now use multiple sidebars
* Added the_content filters
* Fixed the bugs with the default theme
* Posts are supported as well
* Double quote bug fixed
* HTML is better supported

= 1.1 =
* You can now use the_block in your (custom) header, footer and sidebar template files.

= 1.0 =
* Plugin created