Have you ever found a need to create grid column content in your posts or pages? Up until now, this feature was reserved to theme developers. Many theme authors were adding 20+ column shortcodes in their themes to keep up with competition in the industry. The biggest problem was that they were complicating the issue more than it needed to be. By adding their shortcodes, you would be locked into that specific theme forever because another theme used their own branded version of the shortcode. That’s just not right. In this article, we will show you how to create grid column content in WordPress posts and pages the “Right” way.
First thing you need to do is install and activate Justin Tadlock’s Grid Columns plugin. Upon activation, you are now ready to use it. Because this plugin has one function and one function only, to make columns, there are no complicated settings option.
You can start using the column shortcode in your post or pages like in the example below:
[column grid="4" span="1"]Some content[/column] [column grid="4" span="1"]Some content[/column] [column grid="4" span="1"]Some content[/column] [column grid="4" span="1"]Some content[/column]
As you can see everything is based on grids. By default there are 4 grids. Each span is equal to the number of columns in the grid. For example, if you add 2 span, then you will only have two columns. See the screenshot below for a visual example:
You are probably wondering why was this plugin created and why you should use it?
Well, many theme developers add several column shortcodes to their themes (this isn’t allowed on WordPress.org, but there are other marketplaces for themes). Adding all these shortcodes are not the best solution and here is why:
- They lock the users, you, into their themes forever.
- They create 20+ shortcodes for what is possible for one. This makes it look like their themes have more features.
- They remove core WordPress filters that other plugins rely on, thus breaking your themes when trying to add other plugins.
- The code is mostly poor written because it is most likely copied from the same bad source.
This plugin gives you a way to use columns while being able to switch between theme to theme while following all the WordPress coding standards and usability methods.