Luigi Cavalieri - Authoring Open Source Software

  1. SiteTree 5.1: Hyper-lists of Child Pages, and A Second Mini-feature

    The last of a year-long succession of updates is here, ready to salute this prolific 2020 that has seen SiteTree growing from an idea of the past to a sitemap builder plugin much more able, way more robust in structure, and with a regained character. In this release the shortcode feature introduced with SiteTree 4.5 is further enhanced by the introduction of a new attribute — SiteTree keeps collecting Flexibility.

  2. Meet the Leaves, Add-ons for SiteTree

    Out of curiosity, about a month ago, I fed the terminal a one-liner program that would have tallied the number of lines of code I had put together to give life to SiteTree Pro. The terminal displayed a number slightly over 13k. Looking at it with a bit of proud, I realised a crossroads was just showing up before me: one path went on with SiteTree Pro in constant growth, the other turned a little to lead straight towards an adventure even more nestled into the WordPress jungle. I really liked what I had built up until then, but the ideas that were bubbling in my head inspired me even more. So I immediately got to work, and after 3k new lines of code, I can finally announce the release of the first Leaves for SiteTree!

  3. Deleting a Whole Taxonomy from the Database

    To carry out such a task, there is no utility function made up on purpose in WordPress. After all, deleting all the data associated to a taxonomy isn't a common task, or at least not something you routinely do. Me, for example, I ran into the problem while writing the uninstall.php script for SiteTree Pro 4.0 — a file loaded when not all the WordPress functions are available, either. But even considering a more generic context, the most streamlined solution that can be adopted is to use three custom queries:

  4. Drawing a Go-back Arrow with CSS Pseudo-elements

    While working on the personal area opened recently, the need arose to add a left arrow to a go‑back link without making any changes to the markup, mainly because I had no control over it. The solution followed naturally: use the ::before and ::after pseudo-elements to draw respectively the point and the shaft of the arrow.

  5. The `db-error.php` Plugin

    In the WordPress jargon a Drop-in Plugin is a PHP script that replaces a functionality of WordPress, somehow becoming part of the core. In fact these special plugins don't need to be activated to be loaded, they just have to be dropped in the wp-content folder.