How to Split WordPress Content Into Two or More Columns

February 4th, 2010 admin

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: the_content( args ); 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. WordPress provides a get_the_content() function to return content as a PHP variable, but how do you determine where the divisions occur? There are a few solutions on the web, but most involve either: Splitting the content at HTML tags such as h2 headings. Unfortunately, that requires the content author to know a little HTML and it’s not very versatile — …


Originally posted on Sitepoint

 
  Related Posts
Determine Current Page in Wordpress
Lately, I’ve been doing a lot of work with Wordpress themes. On one particular site, the navigation menu is built dynamically, combining pages and categories in the navigation scheme. I needed to find a way to determine which page or category was currently being viewed so I could apply a special class to the item in the navigation menu, indicating... 
WordPress: Output Clean and Valid HTML Content
Custom function to automatically clean bad html data from the post content to make your WordPress pages validate again.  Read More →
Using Javascript in Wordpress Themes
If you’re planning to use javascript on your Wordpress blog or website, there is one function with which you should become intimately familiar. That function is wp_enqueue_script() . It will also be helpful if you do a little bit of research into the wp_deregister_script() function, though, the only official information you’ll find about... 
UpSide: A Free WordPress Theme
UpSide: A Free WordPress Theme
The UpSide Theme is a free WordPress theme that is best suited for personal blogs. The WordPress theme comes with 5 color schemes and 2 different layouts that you can set up on the theme’s options page in the WordPress Admin panel. UpSide Theme is provided to you under the open source GPL License —this means that you can use it for all... 
An Introduction to Split Testing in WordPress
An Introduction to Split Testing in WordPress
Split testing is a way to experiment with a live site and find which headlines and text are the most effective. Amazon uses split testing to determine which versions of their site convert customers better. We’ll use WordPress and Google’s Website Optimizer to test two different headlines, and find which works best at capturing customer... 
WordPress: Taking the Word By Storm
WordPress: Taking the Word By Storm
WordPress. Hot. Sweet. Rad. However you choose to describe it, there’s no denying WordPress is a force to be reckoned with. At June 2010, there were 11.4 million blogs hosted on WordPress.com, plus 13.8 million active installations of the WordPress.org software. This translates to at least 14 million people using a WordPress theme today—and... 
Wordpress: Style Top Level Pages Differently
Recently, I needed to figure out how to apply different styles to the top level pages on a Wordpress site than those applied to child pages. After a little digging, I figured out a fairly easy way to determine which is which. Granted, I could easily create a custom page template and assign it to each of my top level pages, but that would require... 
The Ultimate Guide to WordPress 3.0 Comment Form Customization
In this article I will explain how to use the new comment_form() function within WordPress 3.0 to give better usability within our comments function inside of WordPress.  Read More →
Simple Process To Develop WordPress Themes
A frequently asked question I often receive – mainly from people who start having a hand in developing WordPress themes for the first time – is: what’s the right way to proceed for implementing a custom theme? What’s the order with which modifying all various files which compose the default theme? As I already said in other posts... 
How to Integrate an Options Page into your WordPress Theme
How to Integrate an Options Page into your WordPress Theme
Creating themes to give away or sell is great, but not everyone who uses your theme will have a solid understanding of HTML/CSS. Providing your theme with an options page makes it easier for non-technical users to make theme changes without getting their hands dirty with code. I’ll show you how to make one from scratch! What We’re... 
  Related Tweets from Twitter
tonydisanza (Tony DiSanza)  : Politico to Run Opinion #Columns http://goo.gl/fb/kiWrk #internetmarketing #technologyandotherstuff #joescarborough..
Updated : 2010-09-09T15:23:03Z   |  Reply  |  View Tweet
ShareableDesign (Shareable Magazine)  : RT @ehooge: Civic Commons: knowledge sharing & coordination between #cities working to develop #opengov initiatives http://ow.ly/2BK3Q..
Updated : 2010-09-09T15:22:42Z   |  Reply  |  View Tweet
kimodonnel (Kim O'Donnel)  : RT @culinate: New time, today only: @kimodonnel's Table Talk is at 12pm PT/3pm ET. Food safety is the topic; @bmarler is the guest. http://b..
Updated : 2010-09-09T15:22:11Z   |  Reply  |  View Tweet
culinate (Culinate)  : New time, today only: @kimodonnel's Table Talk is at 12pm PT/3pm ET. Food safety is the topic; @bmarler is the guest. http://bit.ly/dk43HH..
Updated : 2010-09-09T15:20:06Z   |  Reply  |  View Tweet
ehooge (Emile HOOGE)  : Civic Commons: knowledge sharing & coordination between #cities working to develop #opengov initiatives http://ow.ly/2BK3Q..
Updated : 2010-09-09T15:20:03Z   |  Reply  |  View Tweet
  Related News from Digg
No comments yet.

Spam Protection by WP-SpamFree

TOP