Web Monetizing different post types

Introduction

Welcome! This post is the third in a series about Web Monetization and WordPress.

In the last post, we went from a blank WordPress install to being fully web monetized. In this post, we’ll look at why and how you might want to add web monetization differentially based on the post types on your WordPress site.

As an added bonus I’ll also show you how I use a plugin to create and manage custom post types and taxonomies. We could just use ‘Pages’ and ‘Posts’ which are default with WordPress but I thought it’d also be fun to create a custom post type!

In future articles, we’ll look at monetizing your content in other ways (e.g. by category or author) and even at using web monetization to selectively show/hide parts of individual pages. All are valid ways to split content and manage Web Monetization.

Preparation

You’ll need to have completed the first tutorial and be logged into your WordPress site with administrator privileges.

We also need to think of a good example for why you might want to selectively monetize your content:

  • You might be monetizing some content a different way
  • Some of your content might simply not be relevant to monetize (for example, legal pages like Terms and Conditions)

In my example, I’m going to create an ‘Examples’ post type. I’ll use this to list any WordPress-powered sites that I find or am told about that are using the Coil Web Monetization plugin. And for the sake of this tutorial, we’ll change pages to be non-Web Monetized, leaving just posts and examples as the money-earners!

Tutorial

1 – Add the CPT UI plugin

First off, we’re going to install Custom Post Type UI which is an incredibly powerful and useful plugin from my good friends at WebDevStudios. Here’s a quick video to show you how.

A video showing how to find, install and activate the Custom Post Type UI plugin

2 – Use CPT UI to create a new post type “Examples”

Next, using that plugin, we’ll create a new post type. The video below shows you how to do it. Important: ensure to select the ‘Custom Fields’ option at the bottom of the screen to enable the Coil plugin! The rest is more or less up to you to experiment with.

3 – Go to Coil plugin settings and selectively activate Web Monetization for different post types

I’m pretty sure this happens automatically for new post types, but just in case we’re going to go to the Coil plugin settings and ensure that the “Examples” post type is selected for Web Monetization.

4 – Add a new “Example” post

Now to test this all works, we can go to the Examples section in the CMS and add a new post. I’ve already added one with a title, some content, a featured image and we check that the Web Monetization status is correct.

5 – Go to the front end and test that it works

OK so the last thing to test is that the new Custom Post Type post is Web Monetized. Doing that is simply a case of visiting the post in the front end and clicking the Coil browser add on (just out of shot – sorry!) to see that the site is recognised as Web Monetized and that the funds are flowing.

Turn off Web Monetization for pages

OK so the final part is to show that we can also turn Web Monetization off. Here we’re using ‘Pages’ as the sacrificial post type and turning it off, then viewing a test page to show that the page is not Web Monetization and funds will not flow.

Conclusion

Hopefully in this guide, you’ve learned how to create a custom post type, thought a little about content strategy and then how you can use the Coil Web Monetization plugin to differentially Web Monetize your content.

I’d love to hear your ideas or see what you’ve done so please do leave a comment or contact me!

In the next guide, we’ll look at using Categories and Tags to manage Web Monetization for your WordPress posts.

Leave a Reply