Here’s how to add a short code:
// *********** shortcodes **************
add_shortcode(’ranzly_agents’, ‘ranzre_display_agents’);
function ranzre_display_agents($values){
extract(shortcode_atts(array(
‘pid’ => ‘all’
), $values));

if($pid==’all’){
return ranzRE_show_all_agents();
}
return ‘<h1> Lyle agents</h1>’;
}