WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Attribute Taxonomies List? (4 posts)

  1. Digital Raindrops
    Member
    Posted 9 months ago #

    I am trying to create an array with the WooCommerce Attribute Taxonomies, I have found the values in a database custom table, I have the code below, but the variable $attrib_info is empty!

    global $wpdb,$table_prefix;
    $post_sql = "select * from $wpdb->woocommerce_attribute_taxonomies";
    $attrib_info = $wpdb->get_results($post_sql);

    Is there another function to return the list of 'pa_' single term values not the siblings or from the post meta, just the top level.

    if we are looking at the dummy data I would only get color and capacity returned.

    Any help appreciated.

    David

  2. Digital Raindrops
    Member
    Posted 9 months ago #

  3. Digital Raindrops
    Member
    Posted 9 months ago #

    Hi People,
    I have still not be able to get this to work, is there anyone with a solution?

    Regards

    David

    http://wordpress.org/extend/plugins/woocommerce/

  4. tiendacg
    Member
    Posted 5 months ago #

    Hi. I'm not an expert, but try this:

    $post_sql = "SELECT * FROM " . $wpdb->prefix . "woocommerce_attribute_taxonomies";

    On the other hand, woocommerce has a helper function to retrieve what you want:

    get_attribute_taxonomies()

    See here

    Regards

Reply

You must log in to post.

About this Topic