count qty of products with a term
-
Dear Friends,
I am developing a new element in my company website but I need your help.
My question is how I can verify if a term of attribute have products.
The idea is:
$anat_representada_producto = wp_title(”,false,RIGHT);
if the term with name in the variable $anat_representada_producto have products then
echo do_shortcode(“[products attribute=’Marca’ terms=’$anat_representada_producto’ limit=’4′ orderby=’date’]”);
if not have products then don’t show nothing.I hope I explained this well.
Thank you very much for your help.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘count qty of products with a term’ is closed to new replies.