I'm trying to figure this one out and having some issues:
Trying to filter my posts by category so that a certain category is not displayed in the list
this is in the Showcase Template for twentyeleven theme
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
// Display our recent posts, showing full content for the very latest, ignoring Aside posts. $recent_args = array( 'order' => 'DESC', 'post__not_in' => get_category(15), 'tax_query' => array( array( 'taxonomy' => 'post_format', 'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-quote', 'post-format-status' ), 'field' => 'slug', 'operator' => 'NOT IN', ), ), 'no_found_rows' => true, ); This is the code I think I need to change: 'post__not_in' => get_category(15),
This setting give me an error that it is not in an array, not sure how to fix that.