News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint PHP Blog:
How to Split WordPress Content Into Two or More Columns
February 05, 2010 @ 12:58:00

On the SitePoint PHP blog there's a recent post from Craig Buckler showing how to split up your WordPress content into two or more columns quickly and easily.

WordPress is a great CMS, but implementing some features within your theme can require a little lateral thinking. The content for your page or post is usually output by the theme code using a single function call. But what if you need to split the content into two or more blocks? That might be necessary if your theme requires multiple columns or sections on the page.

There's a built in call WordPress includes, "get_the_content", that returns the content rather than just echoing it out. With this handy function giving you just the content, you're free to split up the content however you want - on certain tags or as they suggest, using the "more..." tag and a few modifications to a few other scripts to split it out into DIV blocks.

0 comments voice your opinion now!
wordpress content tutorial split column


blog comments powered by Disqus

Similar Posts

Jani Hartikainen's Blog: How to make a file downloadable through your script

Nils Luxton's Blog: Installing PHP 5.4.0alpha1 into Wampserver

SitePoint PHP Blog: PHP and WMI Dig deep into Windows with PHP

PHPMaster.com: ClamAV as a Validation Filter in Zend Framework

Gonzalo Ayuso: Building a Silex application from one Behat/Gherkin feature file


Community Events











Don't see your event here?
Let us know!


release component introduction symfony2 opinion unittest example overview composer code package application hhvm framework language security podcast install hack facebook

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework