---
title: WordPress
description: Put a Book Market buy link in a Custom HTML block or a normal button.
order: 60
published: 2026-10-02
updated: 2026-10-02
---
## Use a Custom HTML block

After [publishing your book and activating selling](/developers/quickstart), add a Custom HTML block to your page. Replace the uppercase slugs, then preview the page.

```html
<a href="https://thebookmarket.com/checkout/YOUR-AUTHOR-SLUG/YOUR-BOOK-SLUG">Buy my ebook</a>
```

If your editor or site permissions restrict code, use a regular button block and paste the same buy URL into its link field. No script is required.

## Check the destination

Open the published page and follow the link. It should show your book in Book Market checkout. Readers don't need an account to buy.

For a custom theme, the [HTML and JavaScript example](/developers/quickstart#render-a-book-from-the-api) can render current book details. Use `buy_url` from the [catalog API](/developers/api) and only show the button when the book is on sale. The embed is coming soon.
