Skip to main content

What shortcodes does the WithWine WordPress plugin have?

A list of the WithWine WordPress plugin's [withwine] shortcodes for shops, products, featured lists, clubs, mailing lists, preferences, tasting menus, My Account pages, the cart and login links.

Add these shortcodes to any WordPress page or post. Replace anything in capitals, such as PRODUCT ID, with your own value.

Shop and products

  • [withwine type='store' /]: your shop, with products and filters together.

  • [withwine type='store-products' /]: just the products, without filters.

  • [withwine type='store-filter' /]: just the filters. Use with store-products when you want the filters somewhere else on the page.

  • [withwine type='store-filter-text-search' /]: a search box that filters the shop by name, description, variety, vintage and SKU. Needs [withwine type='store-filter-events' /] on the same page.

  • [withwine type='product-details' data_product_id='PRODUCT ID' /]: everything about one product. On your product page, leave out data_product_id.

  • [withwine type='product-action-buttons' data_product_id='PRODUCT ID' /]: the try, like and buy buttons for a product.

  • [withwine type='product-price' data_product_id='PRODUCT ID' /]: the product's price for the customer viewing it.

  • [withwine type='product-awards' data_product_id='PRODUCT ID' /]: the product's awards.

  • [withwine type='product-sub-details' data_product_id='PRODUCT ID' /]: the description, awards and details.

  • [withwine type='product-variation-select' data_product_id='PRODUCT ID' /]: a drop-down to choose a variation, such as a glass or a magnum.

  • [withwine type='product-field' data_tag='h2' data_contentfield='name' /]: one field of the product, such as its name. It updates when the customer chooses a different variation.

Product lists

Clubs

  • [withwine type='clubs' /]: a list of your clubs.

  • [withwine type='club-button' data_club_id='CLUB ID' /]: a Join button, or an Update button for existing members.

  • [withwine type='club-wizard' data_club_id='CLUB ID' /]: a step-by-step club sign-up.

  • [withwine type='my-memberships' /]: the clubs the logged-in customer belongs to.

Mailing list and preferences

Tastings

  • [withwine type='tasting-menu' /]: your tasting menu, with a choice of venue. See "How to add a tasting menu to your WordPress website".

  • [withwine type='tasting-bar' /]: a bar at the bottom of the page counting the wines the customer has tried and liked, with an option to log in and save them.

Customer accounts, login and cart

  • [withwine type='my-account' /]: the customer's account, with addresses, details, orders, payment methods and tastings.

  • [withwine type='my-account-addresses' /], [withwine type='my-account-details' /], [withwine type='my-account-orders' /], [withwine type='my-account-payment-methods' /] and [withwine type='my-account-tastings' /]: one part of the account on its own.

  • [withwine type='menu-cart-link' /]: a cart button with the number of items in the cart.

  • [withwine type='conditional-content' data_showif='loggedout' data_action='login' data_text='Log in' /]: a link or text shown only to logged-in or logged-out customers.

Where to find IDs

Open the item in WithWine. Its ID is shown at the top right of the edit page, for example ID: 689.

  • List ID: Settings > Products > Product Lists, then click the list.

  • Product ID: Settings > Products, then click the product.

  • Club ID: Settings > Clubs, then click the club.

  • Venue ID: Settings > Venues, then click the venue.

Related articles

Did this answer your question?