Today I was working on a new version of a site when I noticed that I had changed how I named a custom post type. It triggered me into figuring out the best practices for naming custom post types. After some quick research from a couple of sites, I came to a conclusion. Custom Post […]
Articles
Software Versioning and WordPress
There are several ways software maintains version numbers, but in WordPress, plugins & core typically follow Semantic Versioning. This is where 3 different numbers explain the current version of software: Semantic versioning has very detailed rules when changing each of those 3 numbers. MAJOR – Non-backwards Compatible API Changes This number should change any time […]
No Language Options for Site Language in WordPress
TL;DR – Languages can only be downloaded via Settings > General > Site Language when DISALLOW_FILE_EDITS and DISALLOW_FILE_MODS are set to false One day I was trying to write up a development plan for implementing multilingual support for a client. They had an interest in also making the WordPress admin multilingual as well, so I […]
How to Use Custom Fields In WordPress
One of the best ways to store and display additional information on your site is to use WordPress’s post meta through custom fields. WordPress has the ability to allow post authors to assign custom fields to a post. This arbitrary extra information is known as metadata. WordPress.org Codex This metadata, otherwise known as “post meta”, is […]
Micro Plugins In WordPress
I have been thinking about the concept of micro plugins for a while now. A few months ago, I was having a discussion with some folks from my local WordPress meetup group and we got on the topic of the best way to handle modifying a theme’s functions.php file. When we really started digging into […]
Using VS Code to Improve Your Git Commits
The other day I had a great discussion with a few of my coworkers about improving our Git Commits. After some back and forth, and discussing Sal Ferrarello’s rules for git commits, I decided to create a git commit template that would open up in my editor each time I used git commit in my […]
Get Only Public Post Types In WordPress
Recently I had a situation where I needed to determine if a post type was not one of WordPress’ core types. WordPress has several base post types: Post (Post Type: ‘post’) Page (Post Type: ‘page’) Attachment (Post Type: ‘attachment’) Revision (Post Type: ‘revision’) Navigation menu (Post Type: ‘nav_menu_item’) For example, let’s say that we need […]
Transforms Can Be Used to Invert Elements
Earlier this week I was working on styling a website and trying to keep a component as customizable as possible. Within it, I needed the ability to reverse an icon with CSS only and I found out that using transform: scale(-1) will automatically flip the element you use it on. You can also specify the […]
Using Symlinks With Local by Flywheel For Plugin Development
When developing Plugins with Local by Flywheel it’s a good idea to keep the plugin code separate from your WordPress installs. Using symlinks with Local by Flywheel helps keep the plugin code isolated so it’s easier to manage.
Learn SCSS From The Source
When I’m trying to style something using a Mobile First approach, I tend to under-think my SCSS. I don’t know if I just get lazy sometimes or I just get tired of what I’m working on; It doesn’t always leave me with the best styles. The code may get the job done, but it’s convoluted […]