Create a gist now

Instantly share code, notes, and snippets.

Embed
Mystile - Only display parent categories on homepage
add_filter( 'mystile_homepage_product_categories_params', 'homepage_parent_categories_only' );
function homepage_parent_categories_only( $params ) {
$params = 'parent="0"';
return $params;
}
@BurnzZ

This comment has been minimized.

Show comment
Hide comment
@BurnzZ

BurnzZ Sep 21, 2014

Omg. This saved me! Thank you so much!

BurnzZ commented Sep 21, 2014

Omg. This saved me! Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment