WPIntell

Source evidence

Sorting not working

Role Based Pricing for Woo by Meow Crew · support · 2024-03-03T17:48:00+00:00

complaintsentiment
mediumseverity
0.81relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 23 rows with source links

17.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
sameer7640 unresolved
How do I sort the products? $args = array( 'posts_per_page' => $atts['per_page'], 'paged' => $paged, // Use the specified current page 'post_type' => 'product', 'post_status' => 'publish', 'ignore_sticky_posts' => 1, 'post__not_in' => array(get_the_ID()), // Exclude the current product 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'id', 'terms' => $category_id, ), ), ); if($sort_by === 'price') { $args['orderby'] = 'meta_value_num'; $args['meta_key'] = '_price'; $args['order'] = 'ASC'; } else if($sort_by === 'price-desc') { $args['orderby'] = 'meta_value_num'; $args['meta_key'] = '_price'; $args['order'] = 'DESC'; } else { $args['orderby'] = $sort_by; } $query = new WP_Query($args); The page I need help with: [ log in to see the link] Is your question related to WooCommerce Role Based Pricing by Meow Crew plugin or to WooCommerce itself? If you need help with Woo development, you can contact them here – https://wordpress.org/support/plugin/woocommerce .

Comments

1 shown
meowcrew 2024-03-04T20:35:00+00:00

Is your question related to WooCommerce Role Based Pricing by Meow Crew plugin or to WooCommerce itself? If you need help with Woo development, you can contact them here – https://wordpress.org/support/plugin/woocommerce .