WordPress.org

Ready to get started?Download WordPress

Forums

mixing categories and taxonomies (1 post)

  1. backwheelbates
    Member
    Posted 1 year ago #

    Hi,

    Im modifying a widget to include both categories and taxonomies from woocommerce, but Im not sure where to start.

    I have a category called 'thelab' and a woocommerce 'product_cat' also called 'thelab'. How can I get these categories to show up together in the same widget?

    This is what I have currently, thanks for any ideas!!

    $second_query = new WP_Query( array( 'cat' => $category, 'showposts' => $$posts, 'orderby' => 'date', 'order' => 'DESC', 'post_type' => array( 'post', 'product' ) ) );

Topic Closed

This topic has been closed to new replies.

About this Topic