Skip to content
Daggerhart Lab Blog
Enter Search Term
This weekend I had some extra time on my hands and decided to checkout Backdrop CMS. Then I wrote a long post about it... sort of
WordPress Widget vs Drupal 8 Block
With the new Drupal 8 Blocks API, WordPress and Drupal are now more similar than not when it comes to Widgets vs Blocks. This post shows examples of each and highlights their similarities and differences.
Guide to Drupal 8 Theme Development
Originally planned as an introduction to Drupal 8 theme development with Twig, this quickly became a very in-depth guide to many important aspects for building a complete theme.
Custom Drupal 7 Rules Conditions and Actions
Some example Drupal Rules hooks providing conditions and actions.
WordPress Rewrite API Examples
The WordPress Rewrite API can certainly be confusing. This post will look at how rewrites work in general, and provide multiple practical examples (and one very impractical example) of it in action.
Sweet Widget Admin UI
In my continued attempt at making very simple plugins which greatly improve WordPress widgets, this plugin improves the widget editing experience by providing a larger widget editing area.
Simple PHP Template Class
As a follow up to my earlier post, I wanted to show how to greatly improve the usefulness of the function by changing it to a class with distinct methods, and in the process reduce the previous approach's shortcomings.
How to copy a live WordPress site to a local VVV machine
VVV is one of the best environments for WordPress development, but it only comes with a few sites by default. This post will guide you through creating a new local development site on VVV, and (optionally) importing a live site for local development.
Sweet Widget Templates for WordPress
The way WordPress handles the HTML for widgets is clunky, inflexible, and basically wrong. This plugin solves the problem by providing true templates for widgets within your WordPress theme.
Drupal 7 Themeing Notes
An ongoing list of notes, hints, tips and tricks for Drupal 7 themes and modules. hook_theme(), hook_preprocess_hook(), Drupal render arrays, and many more resources and technical details.
How to Create a Simple PHP Templating Function
Sometimes you find yourself needing to write a very simple php template function. Maybe you're working on a very simple script, or in a CMS that doesn't provide much in the way of template organization or overriding.
How To Disable The WordPress Login Form
There are plenty of reasons you may need to hide the standard WordPress login form. This post shows how to remove the login form from the page completely, while still providing a simple mechanism for accessing the form when needed.
Allow Image HTML tags in WordPress Comments
How to allow your users to place HTML img tags into WordPress comments by hooking into the wp_kses_allowed_html filter. Additionally, this same method can be used to allow other HTML tags into comments.
Simple Read-Only JSON API in WordPress
Class for WordPress that provides a simple JSON api for consumption.
Database interactions with WP_Query and $wpdb
Presentation I gave at WordCamp Asheville in 2015. In which I provide an overview of two different PHP classes for querying the WordPress database: $wpdb for custom queries, and WP_Query() for getting lists of posts.