WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Taxonomy Images] hide_empty not parsed

[Plugin: Taxonomy Images] hide_empty not parsed

  • Raul Illana
    Participant

    @raulillana

    Hi, first of all let me say thanks for such an useful plugin. πŸ™‚

    BTW, in the following code hide_empty is not parsed, or I’m doing something wrong.

    $terms = apply_filters('taxonomy-images-get-terms', '', array(
    	'taxonomy'   => 'ciudades',
    	'hide_empty' => 0
    ));

    I can see only the taxonomies with contents. πŸ™

    ΒΏAny tips?

    Best,

    http://wordpress.org/extend/plugins/taxonomy-images/

Viewing 4 replies - 1 through 4 (of 4 total)
  • hide_empty is not a parameter for that filter. You have to use hide_empty in term_args.

    Example:

    $terms = apply_filters( 'taxonomy-images-get-terms', '', array('taxonomy'=>'work-clients', 'image_size' => 'Fullsize', 'term_args' => 'hide_empty=0') );

    Raul Illana
    Participant

    @raulillana

    Hi Syed, got it from a while, but thanks for taking time to respond.

    $terms = apply_filters('taxonomy-images-get-terms', '', array(
    	'taxonomy'  => 'ciudades',
    	'term_args' => array(
    		'hide_empty' => 0,
    		'parent' => 0
    	)
    ));

    This is in what I’ve ended. For if it helps some one. πŸ™‚

    Regards.

    Thanks for the help Syed

    Great help !!

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