Shortcode Guide

3 min read

Shortcode

Shortcode Guide

Every EasyCart shortcode is one click away — no code, no memorizing tags. Open the built-in shortcode editor, pick what you need, and drop it straight onto any page or post.

Open the Shortcode Editor

One tiny cart icon in your editor toolbar puts every shortcode in this guide at your fingertips.

WP EasyCart — Shortcode Toolbar Icon

WP EasyCart shortcode cart icon in the WordPress editor toolbar

WP EasyCart — Shortcode Picker Popup

WP EasyCart shortcode picker popup listing every available shortcode

Store & Category Display Shortcodes

Show your whole catalog, a curated category list, or a rich nested category browser — pick the display that fits your page.

  • Store Shortcode: Drop the ec_store shortcode onto any page and you have a fully working storefront — nothing custom to configure.
  • Categories Shortcode: Shows all your featured categories, or pick one parent category and show its children — displayed as a list of product-style tiles.
  • Category View Shortcode: Built for stores with real category depth. Add a description and image to each category and it shines with three layers — say, Household Items › Couches › Recliner Couches.

WP EasyCart — Categories Shortcode

WP EasyCart categories shortcode showing a list of featured categories

WP EasyCart — Category View Shortcode

WP EasyCart category view shortcode showing nested parent and child categories

Build a Page Around One Menu, Category, Manufacturer, or Product

These four shortcodes insert the store grid, pre-filtered to exactly what you choose — perfect for a dedicated landing page.

WP EasyCart — Product Menu Shortcode

WP EasyCart product menu shortcode scoped to a specific menu ID

WP EasyCart — Product Category Shortcode

WP EasyCart product category shortcode scoped to a specific category ID

WP EasyCart — Manufacturer Group Shortcode

WP EasyCart manufacturer group shortcode scoped to a specific manufacturer ID

WP EasyCart — Product Details Shortcode

WP EasyCart product details shortcode scoped to a specific product ID

Single Item & Select Items Displays

Need pixel-level control over layout and order? These two shortcodes hand you the wheel.

Single Item Shortcode

Insert one product, styled and sized how you like — great for a custom layout that needs just one item front and center. Learn how to build a product here. Set the display type to “custom display type 1” and stack a few, like this:

[ec_product productid="248" style="3"]
[ec_product productid="3" style="3"]
[ec_product productid="5" style="3"]

WP EasyCart — Single Item Shortcode

WP EasyCart single item shortcode with product ID and style parameters

Result — Single Item Shortcode Display

Three products displayed on a page using the single item shortcode

Select Items Shortcode

Insert multiple products in exactly the order you want, with a custom display type. Reorder them anytime by rearranging the product IDs in the shortcode. Learn how to build a product here. Match your column count to the page width for the best-looking result.

WP EasyCart — Select Items Shortcode

WP EasyCart select items shortcode with multiple product IDs in a custom order

Result — Select Items Shortcode Display

Multiple products displayed on a page in a custom order using the select items shortcode

Cart, Account & Add-to-Cart Shortcodes

The simplest shortcodes in the toolbox — one line each, no configuration needed.

  • Cart Shortcode: Turns any page into a full EasyCart cart and checkout page. Just drop in the shortcode.
  • Account Shortcode: Turns any page into a full EasyCart customer account page — login, order history, everything.
  • Add to Cart Button Shortcode: Drops a standalone add-to-cart button anywhere on a page, including any option sets attached to the product — ideal when you’re building a custom page packed with videos, documents, or other content to help a shopper decide before they buy.
  • Cart Display Shortcode: Shows just the cart’s contents on a page, with none of the checkout fields — style it with CSS however you like.

Membership Shortcode

Wrap content so only customers who bought a specific product — or hold an active subscription — can see it.

1

Choose the Required Product(s)

Select the product or products a customer must purchase — or the active recurring billing subscription they must hold — to unlock the page.

2

Write the Member Content

Place your members-only content inside the ec_membership tags — that’s exactly what buyers will see.

3

Write the Non-Member Pitch

Use ec_membership_alt to tell everyone else what they’re missing and exactly how to buy in.

WP EasyCart — Membership Shortcode Product Selection

WP EasyCart membership shortcode product selection for restricted content

WP EasyCart — Membership Shortcode Editor Code

WP EasyCart membership shortcode code showing member and non-member content blocks

💡 Prefer the newer method: We now recommend our secure membership system built for a WordPress page instead of this shortcode. Learn more on this newer method.

Ready to Build with Shortcodes?

Every shortcode in this guide drops straight into any page, post, or widget area — mix and match until your store looks exactly right.

Updated on July 20, 2026