• Resolved marv2

    (@marv2)


    Hi, I would like to create a brands page and display only the top level (parent) hierarchical brands on the page. Currently I only see an option to show all the brands. Is there a way to do this?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello!

    It’s not possible!

    You only show all the brands with different presentations.

    Thread Starter marv2

    (@marv2)

    Is there any way to add this feature into the shortcode?

    Hello marv2!

    The plugin haven’t hooks to change the brands query.

    But, brands are terms, you can create your own shortcode and replace the brands query to add right parameters.

    Or you can modify the get_brands method (class-perfect-woocommerce-brands – line 778) adding parent => 0 to $brand_args

    $brands_args = array( 'hide_empty' => $hide_empty, 'orderby' => $order_by, 'order' => $order, 'parent' => 0 );

    That is a wrong practice, because you must modify the core of plugin, but it works.

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to only show Parent Hierarchical Brands in shortcodes?’ is closed to new replies.