Wrap block of text with shortcode. It will be split into columns. Automagically.
You need to display your articles in magazine or newspaper style. Use this plugin. You don't have to change your theme files or add styles - just use "table" splitter.
The plugin requires DOM API (http://www.php.net/manual/en/book.dom.php) and Tidy (http://www.php.net/manual/en/book.tidy.php)
Wrap block of text with [auto_columns]...[/auto_columns] shortcode. It will produce markup like
<div class="auto-columns-container columns-2">
<div class="auto-columns-column column-1 first-column">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</div>
<div class="auto-columns-column column-2 last-column">Nam tincidunt gravida dui, at bibendum nisl lacinia nec.</div>
<div class="auto-columns-clear"></div>
</div>
In your theme use do_shortcode function:
<?php echo do_shortcode('[auto_columns]' . $content . '[/auto_columns]'); ?>
You will have to define width for .auto-columns-column class in your theme, of course.
Requires: 3.1.0 or higher
Compatible up to: 3.3.2
Last Updated: 2012-8-2
Downloads: 1,913
Got something to say? Need help?