> ## Documentation Index
> Fetch the complete documentation index at: https://memberful.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Add a link to buy a plan

> Add a purchase link from Memberful to your website so visitors can subscribe to a plan. Memberful generates the link and handles checkout end to end.

export const RelatedDocs = ({link1, link2, link3, link4, link5, link6, link7, link8, link9, link10, className = ""}) => {
  const links = [link1, link2, link3, link4, link5, link6, link7, link8, link9, link10].filter(Boolean);
  if (!links.length) return null;
  return <section className={`related-docs border dark:border-gray-700 rounded-2xl px-6 py-4 mt-6 ${className}`}>
      <p className="mb-2 font-medium">
        <strong>Related help docs:</strong>
      </p>
      <ul className="space-y-1 mb-1 mt-1">
        {links.map((link, index) => <li key={index}>
            <a href={link.url}>{link.label}</a>
          </li>)}
      </ul>
    </section>;
};

Memberful generates purchase links for each of your plans, which you can add to any page or button on your website so visitors can subscribe.

In this help article, we'll show you how to create purchase links and add them to your website using WordPress or any website builder.

## Create a purchase link in WordPress

From your WordPress dashboard, go to any post or page and click the **Memberful** editor button in the WordPress editor.

Select the **Buy Plan** shortcode, choose your plan from the dropdown list, and type your link text (e.g., Become a member - \$15/month). Click **OK.**

<Frame>
  <img src="https://mintcdn.com/memberful/wJEwKgftUVsHWEYv/images/plans/add-a-link-to-buy-a-plan/text-based-purchase-link.png?fit=max&auto=format&n=wJEwKgftUVsHWEYv&q=85&s=d33da9579756c724926a9e26b588e872" alt="Memberful editor button in WordPress editor" width="1440" height="725" data-path="images/plans/add-a-link-to-buy-a-plan/text-based-purchase-link.png" />
</Frame>

If you're writing HTML in the WordPress editor (Text tab), be sure to include the proper HTML link tag:

```html theme={null}
<a href="https://demo.memberful.com/checkout?plan=140">Become a member</a>
```

## Create a purchase button with any website builder

From your Memberful dashboard, go to *Revenue → Plans.* Select the plan and click **Links.**

<Frame>
  <img src="https://mintcdn.com/memberful/DpIOylNdwyisnde_/images/plans/add-a-link-to-buy-a-plan/plan-links.png?fit=max&auto=format&n=DpIOylNdwyisnde_&q=85&s=7f41bd3d8adcbe742d20601a10a2b590" alt="Memberful link button" width="1440" height="928" data-path="images/plans/add-a-link-to-buy-a-plan/plan-links.png" />
</Frame>

Click and copy the **plan purchase link** or **gift purchase links** and use them with the button options provided by your website builder.

<Frame>
  <img src="https://mintcdn.com/memberful/DpIOylNdwyisnde_/images/plans/add-a-link-to-buy-a-plan/plan-urls.png?fit=max&auto=format&n=DpIOylNdwyisnde_&q=85&s=6ad20a9632af66b4b53b016bec37f94e" alt="Memberful plan URLs" width="1440" height="1278" data-path="images/plans/add-a-link-to-buy-a-plan/plan-urls.png" />
</Frame>

If you're using WordPress and your theme doesn't have a button builder, install a plugin like [MaxButtons.](https://wordpress.org/plugins/maxbuttons/)

<Frame>
  <img src="https://mintcdn.com/memberful/wJEwKgftUVsHWEYv/images/plans/add-a-link-to-buy-a-plan/button-builder.png?fit=max&auto=format&n=wJEwKgftUVsHWEYv&q=85&s=ace0e9988ba74acf96ac03a906be35d1" alt="Create a button" width="1440" height="521" data-path="images/plans/add-a-link-to-buy-a-plan/button-builder.png" />
</Frame>

<Callout icon="info" color="#22E273">
  Place links or buttons in high-visibility areas such as your homepage or navigation, clearly communicate pricing in the button text, and use consistent messaging across your site so it aligns with your plans.
</Callout>

<RelatedDocs
  link1={{
url: "/wordpress-plugin/setup/member-account-links/",
label: "Add account management links to your site.",
}}
  link2={{
url: "/wordpress-plugin/protect-content/restrict-access-to-a-single-post/",
label: "Protect WordPress content for members only.",
}}
  link3={{
url: "/configuration/emails/email-templates/",
label: "Edit Memberful email templates.",
}}
  link4={{
url: "/account-management/modes/manage-your-account-in-test-mode/#connect-to-stripe-and-go-live",
label: "Connect to Stripe.",
}}
/>
