With the new Gutenberg editor for WordPress (coming in 5.0), your content will be made up of blocks. Each paragraph, image, quote, heading (and a lot more) are all discrete pieces of information which Gutenberg calls blocks. WordPress natively has the ability to schedule an entire post for a specific future date and time (which… Continue reading Scheduled Blocks
Category: Programming
Add a custom sidebar panel to Gutenberg
WordPress 5.0 will ship with a brand new content editor dubbed Gutenberg. It’s one of – if not the – largest changes to WordPress in the last… ever (?). With change comes anxiety and because this is the Internet, this particular change comes with opinions. Lots and lots of opinions. This post is going to… Continue reading Add a custom sidebar panel to Gutenberg
WordPress Page Templates in Plugins
This used to be a tricky problem to solve involving ‘fooling’ WordPress into loading the right template from its cache etc. However, for about 12 months now – since 4.7 – it’s relatively trivial to load a WordPress page template from a plugin. Here’s how: /** * Add the Page Template to the dropdown… Continue reading WordPress Page Templates in Plugins
Namespaces in WordPress development
As more and more developers come into the WordPress space (a truly wonderful thing) — many of whom transition from other ecosystems — I often hear or read about how antiquated those developers find WordPress coding practices. You don’t have autoloading? Or dependency management? Or… you get the idea. “Wait… you can’t even use Namespaces in WordPress… Continue reading Namespaces in WordPress development