Featured products display problem in custom build theme WooCommerce 3.0
-
Hopefully someone can help me out with this display problem,… it’s driving me nuts!
I build a theme with Underscore displaying the Featured Products in a sidebar. It all worked great until I updated to WooCommerce Version 3.0.5.
The problem:
* If I deselect the “Star” to mark a product as Featured it still shows in the sidebar
* If I choose a new product and mark it as Featured it doesn’t show in the sidebar.WooCommerce now uses “product_visibility taxonomy instead of meta for featured products” but i have no clue how to use that information in my code
(see: https://woocommerce.wordpress.com/2017/04/04/say-hello-to-woocommerce-3-0-bionic-butterfly/)This is the code I use for showing Featured Products:
$bandproduct_args = array(
‘post_type’ => array( ‘product’ ),
‘meta_key’ => ‘_featured’,
‘meta_value’ => ‘yes’,
‘orderby’ => ‘modified’,
‘order’ => ‘DESC’,
‘posts_per_page’ => ‘-1’,
);But as said, it’s not displaying the Featured products properly,…
Your help is appreciated, thank you!
Cheers, Eva
- The topic ‘Featured products display problem in custom build theme WooCommerce 3.0’ is closed to new replies.