WordPress Archives - Jeff Everhart

String Interpolation in PHP

Most of what I write about on the site exists to save someone else from having to learn the painful lessons I’ve spent time, energy, or emotion solving. This is one of those times where I’m sharing something uber useful that many people familiar with PHP may already know. As JavaScript has evolved, one of […]

Read More

Adding Custom Routes to WordPress REST API

Over the last several years I’ve had the opportunity to do a lot more work within the WordPress ecosystem here at VCU. Writing themes and plugins for WordPress was what really got me started in web development, but after years of working in other frameworks like Node/Express and .NET MVC/C#, a lot of WordPress architectural […]

Read More

Setup AWS CloudFront for WordPress | Scaling this Blog

Over the past few years, this site has gone through some pretty substantial changes. After getting hacked on BlueHost sometime in 2016, I reworked the entire site architecture using hand-rolled resources on AWS. While this taught me a lot, it has been increasingly expensive and time-consuming. To keep my costs down, I’m really relying on […]

Read More

Load Testing WordPress Multisite

Over the last few weeks, we’ve been dealing with some heavy fallout from a recent server migration on our large WordPress MU installation. While moving everything from Linode to Digital Ocean should give us a more powerful toolset, save on costs, and give us more infrastructure flexibility, I wish the cut over was uneventful. On […]

Read More

Recursive Recursion with Vue

We’ve been working on a project with some of the folks from the medical campus since I’ve been at VCU. They are developing a large OER site for Histology, which is the study of cells, but we’re approaching a point where this single site has over 1000 pages in a nested menu structure. Since the […]

Read More

Simple is Always Better

One of the hardest things to do as a developer is to resist the urge to add additional complexity where it does not add value to the overall solution. As technologists, we tend to think this stuff is cool, and so sometimes we fall victim to this trap. Let me illustrate with a recent example. […]

Read More

Digging into the Gutenberg Editor

After a decent amount of foot shuffling, I finally decided to step up and dig into the Gutenberg editor that will ship with WordPress 5.0, whenever that is ready. There has been a lot of chatter in the WP ecosystem over the last year or so about when this update will be ready, how it […]

Read More

Web GIS with Leaflet and WordPress

Over the last several years, it seems like I’ve worked on a lot of different map-based applications for a variety of purposes. Some of them have been focused on the digital humanities, like the Moton Museum Civil Rights Tour, while other have been more business-oriented, like this one that I started while at VAFB. I’m […]

Read More

WordPress JavaScript Snippets

This post is really just a placeholder for some new JavaScript tricks I’ve learned for WordPress over some of my latest projects. I’m sure these won’t be groundbreaking, but it’s worth it to document them here, at least for myself.   Working with REST API on Multisite The first snippet deals with using the REST […]

Read More

Extending WP REST API Index Route Response

This should be a fairly quick blog post, but it should help some folks out if they are looking to extend the WP Rest API index route to include some additional fields. First, let’s clear up what I mean by index route.  For the purpose of this post, we are considering the index route to […]

Read More