F
F
Flexx02021-05-20 11:26:20
WooCommerce
Flexx0, 2021-05-20 11:26:20

Link to a list of products that have a common tag?

Hello! Please tell me how to get a link of a specific tag to a list of products with a common tag.

I'm trying to do it by analogy with getting the number of products in a category:
$category = get_term( 44, 'product_cat' );
echo $category->count;

I do this:
$mytag = get_terms( 'product_tag', 413 );
echo $mytag->name;

If I change
echo $mytag->name;
to
echo $mytag;
then I get: Array

Please help me figure it out!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question