'',
'author_name' => '',
'cat_id' => '',
'cat_slug' => '',
'post_order' => '',
'post_orderby' => '',
'post_type' => 'post',
'search' => '',
'per_page' => '',
'page' => '',
), $atts );
$vars = '';
foreach ($a as $key => $value) {
// IF NOT EMPTY ADD TO VAR STRING
if($value != '') {
$ngAtt = str_replace('_', '-', $key);
$vars .= $ngAtt.'="'.$value.'" ';
}
}
ob_start();
// ANGULARJS DIRECTIVE OUTPUT WITH VARS (IF DEFINED)
echo '
post_id must be set in shortcode to display content
'; } else { echo '