• For the life of me I don’t know why but this hack isn’t excluding category 15 from the list of posts that appear… any help greatly appreciated.

    <?php $d = 1; $query4 = new WP_Query();$query4->query('showposts='.$theme_options["fea3PostCount"].'&amp;exclude=15'.'&amp;cat='.$theme_options["fea3CatID"].'&amp;orderby=modified'); ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • the syntax to exclude a category is cat=-15 not exclude=15

    in your case
    '&amp;cat=-15,'.$theme_options["fea3CatID"].'&amp;

    be sure to use a single ampersand and not the ampersand+amp; that the forum software converts ampersands to

    Thread Starter Pete

    (@perthmetro)

    thankyou

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘orderby=modified’ is closed to new replies.