Latest entries

  • Here’s a technical post if ever there was one. I do most of my work in frontend tech these days — HTML, JavaScript and CSS — but there are also certain tasks which require me to delve into PHP. I learned object-oriented (class-based) PHP coding when I worked on TYPO3 projects and all of the…

    Read more

  • Another technical blog post for my own reference; this time to explain to myself how to use React Context when working on webapps which are based on WordPress’ implementation of React. I’ll keep this simple and assume that you know the basics of React and its implementation. (Most of this syntax is 1:1 from React,…

    Read more

  • The WordPress Developer Blog has rapidly become a regular read for me, as it contains practical code examples for many topics which may be too complicated for pure documentation. I learn more quickly using practical examples, so blog posts like the most recent one by Nick Diego are ideal. This latest post shows how developers…

    Read more

  • I built a custom single-selection CategorySelector component for the WordPress Gutenberg editor a while back, but realised on a current project that I had omitted to include hierarchical category support. I needed to swap out the SelectControl with a TreeSelect. (tl;dr: the code for the new component is here.) After a bit of battling, I…

    Read more

  • The WordPress Gutenberg method wp.data.withSelect allows us to wrap a component in a React Higher Order Component, which adds functionality or adds data to the props of the wrapped component. But sometimes, all we need is a simpler method of just fetching some data — e.g. posts — from the REST API and then rendering…

    Read more

  • Once again, I find myself writing a blog post for my own reference, but in the hope that others might arrive here via Google to find a solution to their requirement. In this case, the aim was to find out if a WordPress editor has the requisite capabilities to display a custom PluginDocumentSettingPanel in the…

    Read more

  • I use Gutenberg a lot for editing WordPress post and page content. In order to improve readability and SEO results, I add headings to some sections of the content using the WordPress core “heading” block. However, adding them and changing the heading level (H2, H3, H4, H5 or H6) is a bit of a pain,…

    Read more