function shortcode_function($atts) {

$pairs = array(        ‘title’ => ‘bananas’    );

$a = shortcode_atts($pairs, $atts);

return $a[‘title’];

}

echo do_shortcode(‘[shortcode title=”cows”]’);

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.