Displaying WooCommerce Featured Products

Some of us wants to put our featured products in homepage or in other page of our site. I find it interesting to stumble upon on how to display woocommerce featured product manually, because as we all know that there are woocommerce shortcode already  we can use to display the featured product in woocommerce.

What if we really want to customize our featured product. To do that we need to know how to display it manually.

Okay now, here a actual code I use in one of my project to show the featured product in a template page.

As the code above. We use WP_Query function and the post type is “product” and a meta_key “_featured“. The very most important code there is the line with function get_product().