WordPress Tech Blog

How to install a Cloudflare SSL certificate on Siteground

By Toby Cryns | April 12, 2023
How to install a Cloudflare SSL on Siteground

Hey there! In this video, I’ll show you how to install a Cloudflare SSL certificate on your SiteGround website. I’ve noticed that Let’s Encrypt sometimes doesn’t renew properly due to conflicts with Cloudflare, so this is a great solution. We’ll use TCwebsecurity.com as the guinea pig. I’ll walk you through the process step-by-step. Once we… Continue Reading How to install a Cloudflare SSL certificate on Siteground

How to Download a Website from Wayback Machine

By Toby Cryns | March 27, 2023
wayback machine

Today I ran into an issue where a bunch of website files were deleted off the server, and I was called upon to restore the old files. After first pursuing other options (e.g. backups), I landed on Wayback Machine as the next best choice. Thankfully, there’s a handy command line tool for downloading any site… Continue Reading How to Download a Website from Wayback Machine

My WordPress Security Patching and Maintenance Process

By Toby Cryns | March 2, 2023
wordpress website maintenance

A couple of quick things: My WordPress Security Patching & Maintenance Process Demo, Part 1 Transcript: You’ll see immediately after logging in, you see the 11 updates needed as well as some messages. I’m just gonna quickly read. It looks like I don’t need to worry about. Are you enjoying Monster Insights? Not really <laugh>.… Continue Reading My WordPress Security Patching and Maintenance Process

How to style FacetWP checkbox hierarchy results using jQuery

By Toby Cryns | February 21, 2023

I recently invested many hours trying to target and style a FacetWP taxonomy facet that uses hierarchy for display. It should be noted that you can use straight up CSS for some styling (and should use css wherever possible), but sometimes you need javascript to target parent elements and such. I thought I’d document the… Continue Reading How to style FacetWP checkbox hierarchy results using jQuery

How to fix SpinupWP ballooning disk space issue

By Toby Cryns | February 1, 2023
ballooning disk space

A site we host on Digital Ocean recently went down. It took me a lot of troubleshooting and digging before realizing that the issue was that our disk space was maxed out on Digital Ocean. The site in question needs ~20gb of space, so our 50gb server should be plenty. But alas, there it was… Continue Reading How to fix SpinupWP ballooning disk space issue

How to Redirect a Subdomain to a Root Domain (e.g. staging.mysite.com/stuff to mysite.com/stuff)

By Toby Cryns | January 30, 2023

I had a Google Search Console issue today where it was seeing a bunch of staging urls that no longer exist. I don’t know how they got there, but here we are. 🙂 To resolve this issue, I had to: That’s it!

How to auto-save Advanced Custom Fields (ACF) data to a file in your theme

By Toby Cryns | January 24, 2023
auto save acf data to theme

With ACF 5, they shipped a relatively-unknown and awesome feature: The ability to have WordPress automatically-save your ACF fields to a json file in your theme folder every time you save your fields. This has the effect of: All you need to do is add a folder called, “acf-json”, to your theme folder, and it… Continue Reading How to auto-save Advanced Custom Fields (ACF) data to a file in your theme

How to use $current_user or is_user_logged_in() with FacetWP and WordPress to show different content for logged-in users

By Toby Cryns | January 23, 2023
facetwp current user is logged in

I have a membership site where I need to display certain FacetWP results to people who are logged in and other FacetWP results to people who are logged out. Unfortunately, FacetWP forgets WordPress’ global $current_user variable the minute you use one of the facets. Same with WordPress’ is_user_logged_in() function – FacetWP forgets it all once… Continue Reading How to use $current_user or is_user_logged_in() with FacetWP and WordPress to show different content for logged-in users

How to shrink the size of wp_options table in WordPress

By Toby Cryns | January 20, 2023
enormous wp options table in wordpress

I was recently horrified to discover that the “wp_options” table of this site was over 1.3 gigabytes in size. For those of you counting at home – that is ENORMOUS and unnecessary. I was confused, because the table seemed to balloon overnight (and likely did balloon overnight, it turns out!). The issue was caused by… Continue Reading How to shrink the size of wp_options table in WordPress

How to change all permalink slugs on a custom post type to “post id” rather than “post title”

By Toby Cryns | January 17, 2023
add to functions

Today I needed to change the url slug of a custom post type from /cpt-slug/%post-title%/ to /cpt-slug/%post-id%/. There were thousands of solutions on the web explaining how to change the “cpt-slug” portion of the url, but I couldn’t find a simple solution to change the last part of the url. Well here it is! The… Continue Reading How to change all permalink slugs on a custom post type to “post id” rather than “post title”