tags around shortcodes function shortcode_empty_paragraph_fix($content) { $array = array ( '

[' => '[', ']

' => ']', ']
' => ']' ); $content = strtr($content, $array); return $content; } add_filter('the_content', 'shortcode_empty_paragraph_fix'); /** * Columns - [col class="one-half first no-list-margin"] * * Classes: * - width (one-half, one-third, etc - uses native Genesis column classes in style.css) * - first (used to specify the first column in a row) * - no-list-margin (will cause contained list elements to collapse as one on mobile sizes) */ function column( $atts, $content = null ) { extract( shortcode_atts( array( 'class' => 'one-half', ), $atts ) ); return '
' . do_shortcode( $content ) . '
'; } add_shortcode( 'col', 'column' );