Never miss a thing!

Sign up to have the latest news and announcements from my site delivered straight to your inbox.
  • This field is for validation purposes and should be left unchanged.

Reader Interactions

Comments

  1. Hi Carrie,
    This is great! I would like to exclude one category. How would I go about doing that?
    Thanks!

    • Hey Kim, you can add an exclude argument to get_terms(). I haven’t tested this, but the idea would be something like:

      $categories = get_terms( 'category', 'orderby=name&order=ASC&exclude=termID');

Leave a Reply