< Back to all FAQs

How do I display a single product with an add to cart button?

You can use the wps_products shortcode with a “title” attribute. Here’s a full example of doing this.

There’s also the dedicated buy_button shortcode if you want to display only the buy button.

You can also use the ShopWP Gutenberg blocks to accomplish the same thing.