• Resolved Syamsul Alam

    (@syamsul-alam)


    I have custom taxonomies (TUJUAN) which registered in multiple custom post type (WISATA, TOUR, RENTAL).

    TUJUAN has term ARAB SAUDI which exist in TOUR but empty in WISATA & RENTAL.

    The problem is, in archive-RENTAL.php & archive-WISATA.php, BTF show empty term (in this case ARAB SAUDI).

    I already copy this code in function.php but to no avail:

    function modify_hide_empty( $bool, $current_post_type ) {
    
        return $bool;
    }
    add_filter( 'beautiful_filters_show_empty', 'modify_hide_empty', 10, 2 );

    Checking the “Hide Empty Terms” checkbox in settings also failed.

    Can you help me please, thank you!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Jonathandejong

    (@jonathandejong)

    Hi syamsul,

    Unfortunately BTF has a little bit of a hard time working with counts for taxonomies that are connected with multiple post types.
    It’s not recommended to have the same taxonomies for multiple post types actually if you google it a bit ??

    So the only way i can “help” is to suggest you create separate taxonomies for your different post types right now ?? Sorry to say.

    Best of luck in your project!

Viewing 1 replies (of 1 total)
  • The topic ‘Hide Empty Terms Didn’t Work for Custom Taxonomy in Multiple Custom Post Type’ is closed to new replies.