Rajeeb Banstola

Rajeeb Banstola


Startups Enthusiast. Loves to code (PHP, JS). Occasional Blogger, wannabe Entrepreneur & Amateur Philosopher

April 2017
S M T W T F S
« Jan    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Categories


Fetch products from specific category in WooCommerce

RajeebTheGreatRajeebTheGreat

Working for WooCommerce compatible theme has been easy so far. While learning this, I’ve tried creating simple snippet which I may be able to look in future to get things working.This is the simple snippet to fetch product from specific category in WooCommerce.

Nothing fancy there, On line no: 5-6, we are adding array to tax_query and passing which taxonomy to fetch and which term to use.

Startups Enthusiast. Loves to code (PHP, JS). Occasional Blogger, wannabe Entrepreneur & Amateur Philosopher

Comments 0
There are currently no comments.