' . $cat_title . '';
}else{
$lcp_output = '';
}
$lcp_output .= '
';//For default ul
//Posts loop:
foreach($catposts as $single):
$lcp_output .= '- ' . $single->post_title . '';
//Show comments?
if($atts['comments'] == yes){
$lcp_output .= ' (' . $single->comment_count . ')';
}
//Style for date:
if($atts['date']=='yes'){
$lcp_output .= ' - ' . get_the_time($atts['dateformat'], $single);
}
//Show author?
if($atts['author']=='yes'){
$lcp_userdata = get_userdata($single->post_author);
$lcp_output .=" - ".$lcp_userdata->display_name;
}
//Show thumbnail?
if($atts['thumbnail']=='yes'){
if(has_post_thumbnail($single->ID)){
$lcp_output .= '';
}
}
//Show content?
if($atts['content']=='yes' && $single->post_content){
$lcpcontent = apply_filters('the_content', $single->post_content); // added to parse shortcodes
$lcpcontent = str_replace(']]>', ']]>', $lcpcontent); // added to parse shortcodes
$lcp_output .= '
' . $lcpcontent . '
'; // line tweaked to output filtered content
}
//Show excerpt?
if($atts['excerpt']=='yes' && !($atts['content']=='yes' && $single->post_content) ){
$lcp_output .= lcp_excerpt($single);
}
$lcp_output .=' ';
endforeach;
$lcp_output .= '
';
?>