BACK TO DIRECTORY

Show Orders Shortcode for WooCommerce

by con

0.0
(0 ratings)

Drop [show_wc_orders] into any page, post or widget area that renders shortcodes, and the logged-in customer sees their own orders: order number, date, status, total and a View button — the same table WooCommerce shows under My Account > Orders.

Usage:

[show_wc_orders] shows all of the customer's orders.
[show_wc_orders order_count=10] shows the 10 most recent orders — replace 10 with any number.

That is all. There are no settings.

Details:

  • Each visitor only ever sees their own orders. Logged-out visitors see nothing.
  • The table is rendered through WooCommerce’s own My Account orders template, so your theme’s styling — and any theme override or column filter you already use for My Account — applies to the shortcode too.
  • Works with both classic order storage and High-Performance Order Storage (HPOS).

Screenshots

The customer's orders on a regular page — same table as My Account > Orders.

The customer's orders on a regular page — same table as My Account > Orders.

Limiting the output with order_count.

Limiting the output with order_count.

The shortcode in the block editor.

The shortcode in the block editor.

Plugin Details

Active Installs
100
Total Downloads
2,468
Version
1.2.0
Requires WP
6.5
Requires PHP
7.4
Tested Up To
7.0.4
Added
2022-05-19
Last Updated
2026-07-16 2:46pm GMT

Ratings

5
0
4
0
3
0
2
0
1
0