I want to assign a title to my column shortcode. Essentially, [column title="nameofcolumn"]content[/columntitle]. But I'm not quite sure what to do after the "=>" or after my div class of title. I've looked for tutorials but I can't find anything specific enough for me to understand.
function column_shortcode( $atts, $content = null ) {
extract(shortcode_atts(array(
'title' => 'WHAT DO I ENTER HERE',
), $atts));
return '<div class="third"><div class="title">DO I NEED SOME TEXT HERE?</div><hr/>' . $content . '</div>';
}
add_shortcode('one_third', 'column_shortcode');
EDIT: Also I'd like to set my 1/3 columns under a row div so I can clear: both. How can I accommodate that?