first of all, my website is http://flanynata.com/
I’m trying to exclude the category ‘Breves’ from the section of short news at the bottom of the page. I’ve been trying this changing the default.php but I couldn’t get it.
$the_query = new WP_Query(‘cat=-‘. $GLOBALS[ex_feat] . ‘,-‘ . $GLOBALS[ex_vid] . ‘,-‘ . $GLOBALS[ex_breves] . ‘&showposts=’ . get_option(‘woo_other_entries’) . ‘&orderby=post_date&order=desc’);
$counter = 0; $counter2 = 0;
while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
I thought that adding $GLOBALS[ex_breves] to the other two by default exclude categories I would get this but for some reason that doesn’t work.
Any ideas to fix it?
- The topic ‘[Theme: Premium News] Exclude a category from a section’ is closed to new replies.