25 reputation
28
bio website
location
age
visits member for 2 years, 1 month
seen Sep 18 at 17:18

Nov
6
awarded  Teacher
Jun
26
awarded  Notable Question
Aug
10
awarded  Notable Question
Aug
2
awarded  Supporter
Jun
19
awarded  Popular Question
Apr
19
awarded  Popular Question
Dec
4
accepted How to filter all products by products_tag (woocommerce )
Dec
3
comment PHP Wordpress optimization my loop code
Thanks ! Seems like a good idea, I'm going to try it too but what's meaning of the operator "===" in PHP code, why we use "===" instead of "==" ?
Dec
3
accepted PHP Wordpress optimization my loop code
Dec
3
asked PHP Wordpress optimization my loop code
Dec
3
accepted Get the category from an ID of a product?
Nov
27
awarded  Scholar
Nov
27
answered Get the category from an ID of a product?
Nov
25
awarded  Commentator
Nov
25
comment Get the category from an ID of a product?
And there's not category in the array ? Did i do something wrong?
Nov
25
comment Get the category from an ID of a product?
it outputs this :Array ( [0] => stdClass Object ( [term_id] => 104 [name] => new [slug] => new [term_group] => 0 [term_taxonomy_id] => 104 [taxonomy] => product_tag [description] => Hola qué tal esto es una descripción? [parent] => 0 [count] => 8 ) ) Array ( [0] => stdClass Object ( [term_id] => 104 [name] => new [slug] => new [term_group] => 0 [term_taxonomy_id] => 104 [taxonomy] => product_tag [description] => Hola qué tal esto es una descripción? [parent] => 0 [count] => 8 ) )
Nov
25
comment Get the category from an ID of a product?
I tested but it doesn't output the categiry that the product is in. I used this, <?php $term_list = wp_get_post_terms(1345, 'product_tag', array("fields" => "all")); print_r($term_list); ?>
Nov
24
answered How to filter all products by products_tag (woocommerce )
Nov
23
comment Get the category from an ID of a product?
Hi, thanks for your answer. And yes is a woocommerce product in wordpress. Ok, i'm going to try it, what are the $args for wp_get_post_terms ? i see the "taxonomy" and "args" are optional, so i'm going to try only with the ID.
Nov
23
comment Get the category from an ID of a product?
Hi, It's a woocommerce product and it's a post type.