It’s amazing what you can come up with randomly over the weekend while doing a dozen other things ?
Case in point – Chapters for Authors ?
This is a new plugin I built from an idea I got when I read a tweet from Ines van Essen, who is building a plugin for bloggers to gamify their blogging.
I'm building a thing. It's scary, which is why I am writing about it. Also, I want to pick your brain. https://t.co/w2Z1ErzeLs
— Ines 🇺🇦 (@motherofcode) September 25, 2016
Her plugin, Bloggerpoints will reward authors for writing consistently and hitting specific word counts. A badge of honor, so to speak, for bloggers.
I thought it may be a good idea for those authors, who more than likely will also be writing for NaNoWriMo this November, to have a place in WordPress to write their book.
I’ll be committing myself this November to NaNoWriMo plus I also spend a lot of time in my WordPress dashboard, so this will be a time saving, self-serving plugin.
If you plan on writing and want to easily read over and share your book with the world, this plugin is perfect for you, too.
Installing Chapters for Authors
You can download the Chapters for Authors WordPress plugin via the official WordPress plugin repository.
You can also download it directly from your WordPress dashboard by going to
Plugins - Add New
and searching for WP Dispensary.
If you’re the adventurous type, you can get the plugin from Github 🙂
Flushing Permalinks
After you install the plugin, make sure to re-save your permalinks to flush the settings and let the Chapters plugin link properly.
Creating Chapters
So once you have the plugin installed, you’ll want to start writing immediately.
I mean, why wouldn’t you? 🙂
In your dashboard menu, you’ll now see the “Chapters” post type.
This is where you can publish the chapters from your book, categorize your chapters by book and tag characters.
Books
When publishing new chapters, there is a Books taxonomy where you can categorize your chapters by book.
Looking to write and publish a lot of books? Then this will be how you can do it.
If your permalinks are set to
/%postname%/
then your Book’s URL will be
www.yourwebsite.com/book/book-title
Characters
Tagging the Characters that appear in each chapter makes it easy to see how often characters appear throughout your book, link your readers to all of the times their favorite character appears in your book, etc.
Don’t have characters in your book? No problem!
At the top right of the Add New Chapter page, you’ll see a Screen Options button.
Clicking and opening this up lets you un-check the Characters option, hiding it from your screen forever 🙂
Introduction Quotes
The Chapters for Authors plugin also adds in a custom meta box for you to add in a quote & author name.
In a lot of the books I read, there’s a nice quote on the first page of each chapter, so this meta box will allow you to save your own quote.
You can output the quote by using the following php code:
https://gist.github.com/robertdevore/b17161c8b38ec490b4c8e3e0dacc6114
Thank yous
First, I would like to thank Ines for building a plugin for building something and talking about it. That spark is what brought this plugin to life!
When building the plugin, I utilized the WordPress Plugin Boilerplate Generator to quickly make the base code for the plugin.
The Chapters custom post type was built with the Post Type Generator and I re-used the code from taxonomies and meta boxes in WP Dispensary to build out the custom taxonomies and meta boxes in Chapters for Authors.
If you’re looking for easy taxonomy and meta box generators, GenerateWP has you covered!
Building a plugin like this can be done really quick when you have the right system in place.
The road ahead
I’ll be actively developing this plugin over on Github, so feel free to submit code or open issues.
There is a also paid version of this plugin in the works.
I am not set on a date yet because there’s a couple features I want to make sure I’m getting 100% right.
It is definitely coming though and if the build speed for the free plugin is any indication, I see it happening sooner rather than later.
I mean, NaNoWriMo is coming up really soon 🙂
Leave a Reply