Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lulupont

    (@lulupont)

    please? any idea how to exclude one category?

    Thread Starter lulupont

    (@lulupont)

    ok, i have done it adding the exclude property to the code like this:

    <?php foreach (get_categories(‘exclude=1,6‘) as $cat) : ?>
    being 1 and 6 the IDs of the categories i wanted to get rid of 🙂

    hope it helps anyone

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to exclude one category from the list’ is closed to new replies.