How to target CTAs to WordPress posts, categories, pages, tags and more

If you use WordPress, being able to target by your existing pages, posts and categories is a must. That's why we've built a way for ConvertFlow to know which pages, posts and categories you've created in your WordPress site, no WordPress plugin required.

Head to your ConvertFlow website's integrations page, scroll to WordPress and click "Connect".

You'll then be presented with the form that you'll need to submit so ConvertFlow can access your WordPress site's API.

Enter your WordPress site domain name, including http://or https://. The full URL is required for ConvertFlow to be able to determine whether to establish a secure connection with your site or not.

If your domain has a subdomain, like "www" or "members", make sure to include this too. The easiest way to do this is to copy the base URL directly from your browser while on your site and paste it into ConvertFlow.

Have strong WordPress security?

If you have an extra security layer provided by your hosting provider, or through plugin, then the WordPress rest API may have been disabled, and it will need to be enabled for the targeting integration to work.

If your WordPress site isn't connecting to ConvertFlow successfully, you've double checked the URL you're entering, and your site is running 4.7+, it could be that your site firewall is blocking requests from ConvertFlow. You'll need to make sure WordPress rest API is enabled by your security plugin or host (can be done over hosting company's support chat). 

Or, if you need to whitelist ConvertFlow, here are the IP addresses ConvertFlow will use:

54.173.229.200
54.175.230.252

How to target your CTAs by post, page, category and log in status

With your WordPress site connected, all of your posts, pages and categories are known by ConvertFlow, unlocking new targeting options for you to use in your campaigns.

WordPress targeting options include...

  • If visiting WordPress page
  • If NOT visiting WordPress page
  • If visiting Wordpress post
  • If NOT visiting WordPress post
  • If visiting WordPress category
  • If NOT visiting WordPress category
  • If WordPress post has tag
  • If WordPress post does NOT have tag
  • If person is logged into WordPress
  • If person is NOT logged into WordPress

When you a select your targeting condition type, you'll then find that you can choose from your posts, pages, and categories from a simple dropdown.

Are your targeting conditions not working?

This might mean your WordPress theme is lacking the post class function, which is how ConvertFlow recognizes categories, tags etc.

Most official WordPress themes have post_class() on blog posts HTML tag with the "post" class. 

If you're using a third-party theme, there's a chance this wasn't included, which means ConvertFlow doesn't have a way to tell which category a post belongs to and which tags it has.

To configure this, install the post_class() function on the post tag of your theme's single post template - https://developer.wordpress.org/reference/functions/post_class/