hello, I'm having a little problem. I've search the whole internet
here is my code
<?php $exclude = get_option( 'sticky_posts' ); $exclude = $category->cat_ID; $loop = new WP_Query( array( 'category__not_in' => $exclude, ) ); $m = 0; while ( $loop->have_posts() ) : $loop->the_post(); $m++; ?>
Im using this code to get recent posts in single.php currently I'm eliminating the recent posts of from "Current Category" being watch in single.php
but I want to exclude another category. can anyone help me too exclude multiple categories.