• raquelxmoss

    (@raquelxmoss)


    Hi all,

    I’m having problems with hide_empty. I would like all the categories to display, whether they have a featured image or not. Here’s my code at the moment, can anyone spot the problem?

    $args = array(
        'hide_empty'        => 0,
        'taxonomy'     => 'interface_issues',
        'term_args'    => array(
        'orderby'           => 'latest_post',
        'order'             => 'DESC',
        'hide_empty'        => true,
        'fields'            => 'all',
        'slug'              => '',
        'parent'            => '',
        'hierarchical'      => true,
        'child_of'          => 0,
        'get'               => '',
        'name__like'        => '',
        'description__like' => '',
        'pad_counts'        => false,
        'offset'            => '',
        'search'            => '',
        'cache_domain'      => 'core',
    
        ),
    );
    
    $terms = apply_filters( 'taxonomy-images-get-terms', '', $args );

    https://www.ads-software.com/plugins/taxonomy-images/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Having problems with hide_empty’ is closed to new replies.