• Resolved cirrus123

    (@cirrus123)


    Hi there,

    I am trying to get all the terms for a given attribute but despite using the following code:

    get_terms('pa_size');

    …for example, I get an empty array even though there are sizes within that attribute.

    Any idea how to get a list of all the terms under a certain attribute?

    https://wordpress.org/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘get_terms for 'pa_' attribute returning nothing’ is closed to new replies.