need major help with this one. So i have developed a fully from scratch woocommerce site on wordpress. Its for a client that has tons of different products and product variations. Now I have individual pages that are "shop by specific style page" . Here is my issue, I need to display a loop of […]
- Tags '".get_permalink()."', 'compare' => '=', 'compare' => 'IN', 'field' => 'slug', 'fields' => 'id=>parent', 'key' => '_stock_status', 'kimkaps'); $stock = get_post_meta( '_stock', 'limit' => $products_per_page, 'meta_query' => array( 'relation' => 'AND', 'myprefix_custom_grid_shortcode' );` and have started code there but cant figure out. Any help here would be great! thanks, 'myprefix_custom_grid' ); // Extract shortcode atributes extract( $atts ); // Define output var $output = ''; // Define query $query_args = a, 'operator' => 'IN', 'order' => $ordering['order'], 'orderby' => $ordering['orderby'], 'page' => $paged, 'paged' => $paged, 'post_type' => 'product_variation', 'price') ? 'meta_value_num' : $ordering['orderby']; $products_per_page = apply_filters('loop_shop_per_page', 'return' => 'ids', 'status' => 'PUBLISH', 'tax_query' => array( array( 'taxonomy' => 'pa_style', 'terms' => $the_title, 'value' => 'instock', 'value' => $wccaf_depth, "posts_per_page" => "10", ), ); $wccaf_depth = array( 'style-1' ); // example $args_foo = array( 'post_type' => 'product_variation', )) )); wc_set_loop_prop('current_page', // *this is a custom query arg ); // Query posts $custom_query = new WP_Query( $args_foo ); // Add content if we found posts via our query i, // Change this to the type of post you want to show 'posts_per_page' => $posts_per_page, // example 'groupby' => 'post_parent', $atts, $featured_products->max_num_pages); if($featured_products) { do_action('woocommerce_before_shop_loop'); woocommerce_product_loop_start(); ?>, $featured_products->total); wc_set_loop_prop('total_pages', $ordering['orderby'])); $ordering['orderby'] = stristr($ordering['orderby'], $paged); wc_set_loop_prop('is_paginated', $products_per_page); wc_set_loop_prop('total', array( 'key' => '_stock_status', array( 'key' => 'attribute_pa_style', etc $custom_query->the_post(); // This is the output for your entry so what you want to do for each post. $output .= '' . get_the_title() . ', get_page_template_slug()); wc_set_loop_prop('per_page', I need to display a loop of products that only have the value say style 7 in them. I can make a loop that does this however, it shows products that have the variation style 7 but its out of stock but is in stock in say style 7. I need to figure out a way to loop by, need major help with this one. So i have developed a fully from scratch woocommerce site on wordpress. Its for a client that has tons of diff, paginate: true, Product, term); }, true ); setup_postdata($GLOBALS['post'] =& $post_object); if($instock!==false) { ?> <div class="col-lg-3 col-md-3 co, wc_get_default_products_per_row() * wc_get_default_product_rows_per_page()); $featured_products = wc_get_products(array( 'meta_key' => '_pri, wc_string_to_bool(true)); wc_set_loop_prop('page_template'