WordPress Theme Framework

This is a rapid WordPress theme development framework. The purpose is to allow you to very quickly prop up custom post types, taxonomies, and misc WordPress configurations, with minimal fuss and configuration. The defaults for post types and taxonomies are sane enough, and they can all be overridden with the config array you pass to the bootstrapping function  royl_wp_theme_base() .

I use this for my custom WordPress theme projects. It lets me get much of the annoying boilerplate WordPress configuration out of the way while keeping my theme files super clean.

Setup

This tool assumes you are using Composer.

Create a file called composer.json in your WordPress sites root.

Then run composer install .

Now you only have to add the composer autoloader to your theme. Add the following at the top of your functions.php file.

Now you can start boostraping your theme!

For configuration options refer to https://github.com/roylindauer/royl-wp-theme-base/blob/master/src/config.php.