Support » Fixing WordPress » get_terms and name NOT like

  • I need to get my root categories, so I use:

    $mainCats = get_terms('category', array('parent'=>0,'hide_empty'=>false));

    But I really want to throw out ‘Uncategorized’ from result. In documentation is option ‘name__like’ without info how to do name NOT like. Any tips?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘get_terms and name NOT like’ is closed to new replies.