Skip to main content

Shortcodes

Use shortcodes if you are not using the block editor.

Product page shortcodes

Embed a full product page anywhere on your site so the form appears wherever you need it.

[product_page id="99"]
[product_page sku="FOO"]

You can use this shortcode inside posts, tabs, or custom layouts when you want the entire product layout (including the booking form) to appear in context.

Appointment form shortcodes

Embed the booking form for a product without the rest of the WooCommerce template:

[appointment_form id="99"]

Show or hide the title, price, rating, and other metadata with shortcode attributes so the form matches the surrounding layout.

Attributes

AttributeDefaultDescription
idRequiredID of the appointable product.
skuUse SKU instead of id.
show_title1Show product title (1 or 0).
show_price1Show product price (1 or 0).
show_rating1Show star rating (1 or 0).
show_excerpt1Show product excerpt (1 or 0).
show_meta1Show product metadata (1 or 0).
show_sharing1Show sharing links (1 or 0).
customer_timezones0Enable customer timezone conversion (1 or 0).
availability_autoselectAutomatically select the first available slot (1 or 0).

Example

[appointment_form id="123" show_title="0" customer_timezones="1" availability_autoselect="1"]

Finding the product ID

To embed either shortcode you need the WooCommerce product ID (not the post ID). In the Products list, hover over your appointable product and the ID pops up in a tooltip as shown below.

Find WooCommerce Product ID