When a Permalink URL is Frozen

Had made a plugin that created a custom post type, services with a category service_areas. The category archive page was loading at URL service_areas/some_category, but we also wanted a custom page to be listed at service_areas, which I ended up doing by using a page template. Also using the following code to create the page … Continued

What Doesn’t Suck about WordPress

This post by Scribu encapsulates the trepidations many developers share about wordpress. My friend Chris offers a nice response: https://gomakethings.com/in-defense-of-wordpress/ More thoughts from Jeremy Horland: PRO: 1) WordPress is now the dominant web platform. https://trends.builtwith.com/cms https://w3techs.com/technologies/overview/content_management/all Market Share: Top Website Platforms 2) WordPress is a convergent platform PhpBB, Buddypress, and many other projects are far … Continued

Trying on the new Sage Theme

Had to install Yarn (brew install yarn). Already had composer installed. Needed to upgrade my local version of php: Upgrade to PHP 7 or 7.1 on macOS Sierra or on OSX 10.6 – 10.11 curl -s http://php-osx.liip.ch/install.sh | bash -s 7.0 Then point to it for php-cli: Add export PATH=/usr/local/php5/bin:$PATH to .bashrc, then source ~/.bashrc, … Continued

Developing WordPress Total Child Theme in Docker

First significant challenge is that archive pages aren’t working. Am I missing a setting somewhere? Figured I would install the Base-Lite demo, but server kept timing out. Need to increase limits in the container: Add this uploads.ini file in top level of WP in host computer. file_uploads = On memory_limit = 64M upload_max_filesize = 64M … Continued

Installing 12 year old php script on Ubuntu

This is a temporary measure. Old server went away and we needed at least a virtual private server. Installing MySQL and Apache were a couple of apt-get commands. This codebase only runs on php5.x, which isn’t supported anymore. So needed to add this new apt repository which supports legacy php versions. Found this install solution: … Continued

Adding Unit Tests for Mindbody API

The mz-mindbody-api wordpress plugin has grown over the years and it’s getting difficult to keep track of all the various parameters and features. It’s probably ready for a refactoring, but in the meantime, I aim to get some phpunit tests installed. I’ve been using MAMP a lot for development and wanting to move toward a … Continued

Find Giant Files on OSX

Find all files on system 100Megabytes and up src: http://unix.stackexchange.com/questions/140367/finding-all-large-files-in-the-root-filesystem find / -xdev -type f -size +100M 20 largest files or dirs: du -ax / | sort -rn | head -20 Current dir only: du -ax . | sort -rn | head -20Find all files on system 100Megabytes and up

Font Explorations with XeLaTeX

Troubleshooting some typographical issues with the typographical package LaTeX, came across a couple of commands of note: Get information about a font: otfinfo -i ‘/Users/mikekilmer/Library/Fonts/Palatino Small Caps & Old Style Figures.ttf’ Reset Font Info Cache files: fc-cache – build font information cache files SYNOPSIS fc-cache [ -frsvVh ] [ –force ] [ –really-force ] [ … Continued