Support » Plugin: Taxonomy Images » [Plugin: Taxonomy Images] Hide_empty

  • Great plugin thank you.

    I am trying NOT to hide empty, like it’s possible with get_terms.
    So I need ALL terms to be displayed, even if empty.

    I have this
    $terms = apply_filters( 'taxonomy-images-get-terms', '', array('cat' => '1', 'post_type' => array( 'post','dvd'),'taxonomy'=> 'theme'));

    Which works great, but where will I apply the Hide_empty argument?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Michael Fields



    Anything added to the term_argsargument will be passed – unmodified – to get_terms().

    From the docs:

    term_args (array) Arguments to pass to get_terms() as the second parameter. Default value is an empty array.

    THanks Michael, sorry to bother, but I have tried few things without results.
    Can you be more specific?
    Where does the argument hide empty should be passed and how?

    Like this?
    $terms = apply_filters( 'taxonomy-images-get-terms', 'HERE?', array());

    $terms = apply_filters( 'taxonomy-images-get-terms', '', array(HERE?));

    or Like that
    $terms = apply_filters( 'taxonomy-images-get-terms', 'HERE?', array(HERE?));

    HERE being
    array('hide_empty' =>0)


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Taxonomy Images] Hide_empty’ is closed to new replies.