WordPress.org

Ready to get started?Download WordPress

Forums

get_terms and name NOT like (2 posts)

  1. mmiarecka
    Member
    Posted 2 years ago #

    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?

  2. mmiarecka
    Member
    Posted 2 years ago #

    Please. Anyone?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.