Hot answers tagged

1

Googling get_terms gives the WP developer hub page for get_terms as the first result, for which the first example is this: $terms = get_terms( 'post_tag', array( 'hide_empty' => false, ) ); Using this as a basis we get: $args = array( 'taxonomy' => 'product_cat', 'number' => 5, 'orderby' => 'name', 'parent' => 11, '...


1

It is because you're using a reserved term "year". https://codex.wordpress.org/Reserved_Terms



Only top voted, non community-wiki answers of a minimum length are eligible