Blocks Installation and Usage


AffiliateWP provides many different blocks to use within the WordPress editor.

Go to any post or page and use the block inserter to add an AffiliateWP block. You can find all the available blocks within the AffiliateWP category shown below.

Non Affiliate Content block

The Non Affiliate Content block makes any block placed inside it only visible to non-affiliates.

Affiliate Content block

The Affiliate Content block makes any block placed inside it only visible to a logged-in (and active) affiliate.

Opt-In Form block

The Opt-in Form block displays an opt-in form on your website which integrates with either Mailchimp, ActiveCampaign or ConvertKit. An optional URL where affiliates are redirected to after opt-in can also be configured.

Affiliate Creatives block

The Affiliate Creatives block displays all of the creatives on your website. The creatives will only be visible to a logged in (and active) affiliate.

The user configuring the block can set the number of creatives to show (default is 20) and toggle the display the image/text preview.

If you see a No creatives were found message within the block, check that you have creatives added and they’re active. Go to AffiliateWP → Creatives to add or edit creatives.

Affiliate Creative block

The Affiliate Creative block displays a single creative on your website. The selected creative will only be visible to a logged in (and active) affiliate.

First, insert the Affiliate Creative block. A select menu will appear to allow you to select the creative to show.

Once you have selected a creative it will update and display your chosen creative within the editor.

If an affiliate is inactive, it will still show within the editor but display a The creative is inactivenotice within the block’s settings sidebar. An inactive creative will not display on the front-end of your website.

Affiliate Referral URL block

The Affiliate Referral URL block displays an affiliate’s referral URL on your website. When a logged in (and active) affiliate views the page, they will see their own unique referral URL to share.

When viewed from within the WordPress editor, the user configuring the block can select between the affiliate’s ID or username, show pretty affiliate URLs, set a custom URL, or use the default options configured from AffiliateWP’s settings.

If the user happens to also be an affiliate, they will be shown a real preview of their own affiliate ID or username.

Affiliate Registration block

The Affiliate Registration block displays an affiliate registration form on your website, allowing users to register as affiliates. An optional URL where affiliates are redirected to after completing their application can also be configured.

Similarly to the

Register a new affiliate account

Agree to our Terms of Use and Privacy Policy

shortcode, the form will change depending on AffiliateWP’s settings.

  • If the password fields are not required, the password fields will not show on the form (or within the editor view)
  • If a “Terms of Use” page has been set, it will output an “Agree to our Terms of Use and Privacy Policy” checkbox to the form
  • The terms of use text will change based on the “Terms of Use Label” setting (and also within the editor)
  • If “Allow Affiliate Registration” is not enabled, the form will still show within the editor but will display a notice in the block’s settings. The form however will not be displayed on the front-end of your website.

Affiliate Area block

The Affiliate Area block displays an affiliate login form and an affiliate registration form for users on your website. If AffiliateWP’s “Allow Affiliate Registration” option is not enabled, only the login form will show.

Similarly to the [affiliate_area] shortcode, the form(s) shown are configured via AffiliateWP’s Affiliate Area Forms setting.

Only the login form will display if affiliate registration is not enabled:

Affiliate Login block

The Affiliate Login block displays an affiliate login form on your website, allowing affiliates to login and view their Affiliate Area.

An optional URL where affiliates are redirected to after login can also be configured.