WordPress 6.0 has several new features that should make any extender happy about building on top of the platform. However, one of the more advanced tools is the ability to lock blocks, which can be used to prevent specific blocks from being moved or removed. The upcoming release includes a new “Lock” setting in the block toolbar’s options dropdown, as …
How to Make WP_Query Arguments Filterable
The WP_Query class is very powerful. It lets you create your own custom queries to run anywhere in your WordPress site – in the main content, in the sidebar or anywhere else you like. It’s something I use a lot, either in custom template files or in areas outside the content such as the sidebar or footer. And I’ve lost …
39 Must-Have WordPress Development Tools
WordPress isn’t just for blogging. It’s a full-fledged CMS and undoubtedly a strong platform for developers. But the world of related trends and tools can be exhaustive when you just need a solid solution real fast. Given the fact that WordPress is used by millions of people, it’s only natural many use it to make a living, too. From plugin …
How to Improve First Contentful and Meaningful Paint
You’re not optimizing your site to please a stopwatch. You’re optimizing your site for real people. So how can you determine if you’re achieving your goal? You need to include metrics such as First Contentful Paint and First Meaningful Paint in your performance assessment in order to measure how your site is performing from your user’s perspective. Both will tell …
How to Install XAMPP and WordPress on Windows Localhost
Once you’ve experienced speed and reliability, there’s no going back. Remember the era before high-speed internet, when you had to wait for videos to buffer? Awful times. Three cheers for the modern internet speeds! If you’re used to developing your sites on a live server, that’s exactly what shifting to a local development environment such as XAMPP would feel like. …
How To Properly Add jQuery Scripts To WordPress
WordPress has been in our lives for over 16 years, yet the method of adding scripts to themes and plugins still remains a mystery for many developers. In this article we finally put the confusion to rest. Since it’s one of the most commonly used Javascript libraries, today we’re discussing how to add simple jQuery scripts to your WordPress themes …
Should Users Be Able To Select More Than One Block Style?
When I first tried the block styles feature in WordPress, I was impressed. As a theme creator, it was a simple way of allowing users to select a design-related class without them actually needing to know what was happening under the hood. In that first week or so, I hit the problem that many others had. I wanted to combine …
Konstantin Kovshenin Launches Sail, a CLI Tool for Deploying to Digital Ocean
Last week, Konstantin Kovshenin launched Sail, a CLI tool for deploying WordPress applications to the DigitalOcean cloud. The project is free to use and open source. However, he has plans for an upgraded premium experience down the road. Kovshenin cited speed and efficiency as the two primary reasons developers should give his new tool a try. “You don’t need to …
Ask the Bartender: What Happens When Block Markup Changes?
I’m a developer that has started developing with Gutenberg recently. There are a bunch of amazing benefits and features, but there are also a ton of drawbacks, inconsistencies, as well as absolutely awful and outdated documentation. One of the worst aspects of Gutenberg from a developer perspective has been block validation. Consider the following scenario. I build a custom (non-dynamic) …
G2 Components, a From-Scratch Reimagining of WordPress Components
Update some of the things. That was the goal that Jon Quach, a Principal Designer at Automattic, laid out in the roadmap for integrating the G2 Components project into Gutenberg and, eventually, core WordPress. The project is a reimagining of the pieces that make the block editor, a “from-scratch” overhaul of the component system. Updating all of the things or …