Display Products Using Tag with WooCommerce Shortcode

We get asked this a lot, “How do you display a list of products using a tag with the WooCommerce shortcode?” it is a good question as the WooCommerce documentation on shortcodes doesn’t seem to mention much about product tags. It is actually very easy to list products that have a certain tag using the standard “[products]” shortcode.

All you need to do is include the identifier tag="YOUR-TAG-SLUG" with the standard product’s shortcode. As so ‘[products tag=”gifts”]‘, this would display a list of the products with the tag ‘Gifts’.

Live example of the use of “[products]” shortcode.

Some common shortcode in WooCommerce:

woocommerce_cart

Used on the cart page, the cart shortcode displays cart content and interface for coupon codes and other cart bits and pieces.

woocommerce_checkout

Used on the checkout page, the checkout shortcode displays the checkout process.

woocommerce_my_account
Shows the ‘my account’ section where the customer can view past orders and update their information. You can specify the number of orders to show. By default, it’s set to 15 (use -1 to display all orders.)

woocommerce_order_tracking
Lets a user see the status of an order by entering their order details.

I hope you found this helpful!

For more information on changing display products using Tag with WooCommerce Shortcode, let us help you accordingly, from start to finish, with one-Time fixes, custom plans, or monthly routines for your WordPress website.

Written By
Adam
Founder of WP Helper.
You will also like these articles

Relax Knowing Your WordPress Site Is Secure & Running Smoothly 24/7

Let us manage your WordPress site, everything from security to updates will be taken care of. Support plans also come with dedicated support so we can do anything from adding content to customising your site for you.

Same Day Professional WordPress Support

Get WordPress Support Today

Need help with a single WordPress problem, today? We can help with anything from adding analytics tracking code to site hack recovery. Full money back guarantee on all jobs.

1. Submit a Support Request

Use our support ticket form below to send details of your problem to our developers.

2. Get a Quote

We will review your request and provide a quote within 24 hours (but usually within a few hours).

3. We fix your WordPress problem

Our team will begin fixing your WordPress problem the same day.

4. 100% Money Back Guarantee

If we can’t fix the problem for the amount quoted we will refund you 100%.

  • Do you have a screenshot of the issue or have a copy of the theme or plugin that is at fault? If you want to upload php, html or css please zip first.
    Drop files here or
    Accepted file types: jpg, jpeg, png, pdf, zip, gzip, rar, doc, txt, Max. file size: 15 MB, Max. files: 10.