Support » Themes and Templates » help exclude category

  • Resolved vittorioamodio

    (@vittorioamodio)


    are the new forum, even if you follow some time. passion I have for close to wp is this’ looking to customize some Themes … from this portion of code I would like to exclude a category in addition to video and featured already excluded by default. but I have tried without any success:

    <?php $latest = new WP_query(); $latest->query(‘showposts=’.$mytheme[‘latest’].’&cat=-‘.$mytheme[‘featured’].’,-‘.$mytheme[‘spettacoli’].’,-‘.$mytheme[‘video’]); ?>
    <ul id=”mid-latest”>
    <?php while ($latest->have_posts()) : $latest->the_post(); ?>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘help exclude category’ is closed to new replies.