How To: Intermediate

Sort by recent

What’s New in PHP 8 (Features, Updates & Changes)

21 MIN READ

PHP 8.0 is a major update that was released on November 26, 2020. It came with many new amazing features and optimizations such as named arguments, union types, attributes, constructor property promotion, match expression, nullsafe operator, JIT compiler, improvements in the type system, error handling, and consistency. With 10Web, you can easily update your PHP to the PHP 8.0 version. If you don’t want to go into the details, scroll down to see how to enable it on 10Web. Others are welcome to learn about all the new features of PHP 8 and about the JIT compiler in particular. New features Let’s discover the new features introduced by this new major update. Here’s what we’ll cover in this article: Named Arguments Attributes v2 Constructor Property Promotion Union Types 2.0 Match expression v2 Nullsafe operator Saner string to number comparisons Consistent type errors for internal functions Type system and error handling…

Headless WordPress: How to Create Web Applications Using REST API

9 MIN READ

Some time ago I wrote an article about using WordPress without GUI via CLI, where I mentioned that you actually can do anything without using the WP dashboard. In this article, I’ll take another approach, leaving only the WordPress dashboard, and introduce you to installing a decoupled WordPress. Let’s dive in! Monolithic WordPress WordPress has come a long way, from being used in small blogs to becoming the #1 CMS solution. It grew, developed a big market of plugins and themes that can extend its functionality and enhance its look and user experience. From the very beginning, WordPress has had a “Monolithic” architecture, which means that it has the backend and the frontend in one application. When we install WordPress, we get one of the default themes as the frontend of our website and a dashboard accessible via /wp-admin/ URL as the backend. We can create posts and pages, install…

502 Bad Gateway Error and How to Fix It

13 MIN READ

HTTP 504 Gateway Timeout and HTTP 502 Bad Gateway errors are the most common server errors for WordPress website visitors and owners. In my previous article, we’ve already discussed the causes of a 504 Gateway Timeout error and possible solutions for it. In this article, we’ll come to understand what a 502 Bad Gateway error is, talk about the reasons for a 502 Bad Gateway error, and explore some tips for troubleshooting this type of errors. What does 502 Bad Gateway mean? Before we define what a 502 Bad Gateway error is, let’s deep-dive into server infrastructure and find out the meaning of some terms, like web server, proxy server or gateway, and upstream server. Let’s first discuss how hosting a modern web application works. For this we need three actors: The web application The gateway The web server In the picture below you can see the PHP modern web…

WordPress Cache and How It Can Improve Your Website Speed

15 MIN READ

Nearly half of the World Wide Web is powered by WordPress, but somehow there’s a common misconception that WordPress websites are slow and laggy. In this article, we’ll give you full information about one of the techniques that can highly improve your website performance, WordPress caching. Caching is a technique that allows you to store the result of a long-running task in a fast access memory, and then reuse that result without actually doing the task. This means that cached content is displayed a lot faster than content that’s loaded directly from the server. It’s like memorizing your multiplication tables. Once you have memorized it, it’s so much faster to recite the answer to a multiplication problem off-hand than trying to calculate the answer all over again. Caching can be performed in different stages of a running web application, so every stage is called a cache layer. We’ll go through…

504 Gateway Timeout Error and How to Fix It

13 MIN READ

An HTTP 504 Gateway Timeout error is the most common error encountered by website developers. And in many cases, it can become a real pain. Generally, it’s difficult to find out the reason for a timeout error because the server response has no helpful information about the error cause. In this article, we’ll find ways to troubleshoot timeout errors and find solutions for them, while giving you a better understanding of timeout errors and their causes. What is a 504 Timeout error? To deeply understand what a 504 Gateway Timeout error is let’s first have a look at server and client relationships. What happens when the client sends an HTTP request to the server? When the server receives the request, it processes it, and–depending on whether the result is successful or unsuccessful–returns a response with the corresponding HTTP status code in the HTTP response headers. HTTP status codes are a…

WordPress 5.7: New Features from the Latest Release

13 MIN READ

“I know that you know but I’ll sing it again,” WordPress has a new release and this time around it honors yet another jazz genius Esperanza Spalding, the original source of that quote. Before diving into the nitty gritty of WordPress 5.7, let’s answer two important questions upfront: When will WordPress 5.7 be officially released? It’s already out. The official release date was on March 9, though its beta version had been rolled out before that. What’s new in WordPress 5.7? A bunch of things. But to cut it short, there are Gutenberg improvements that simplify the editing workflow, allowing users to create professional blocks with less coding and more drag-and-drop. Users also have more customization options that are easier for users to find. You could say that WordPress 5.7 is under the overall theme of simplified editing, advanced color palettes with “fresh” colors, and other improvements that will be…

The Complete Guide on How to Setup WordPress Multisite

17 MIN READ

WordPress is a very popular and multifunctional content management system that powers 39.6% of websites in 2021. The free and simple functionality of the system makes it possible to create websites regardless of the level of technical knowledge. WordPress provides tons of features for building an amazing website, and one of the more advanced ones is WordPress multisite. This efficient feature empowers any WordPress user to create their own separate network of subsites for different purposes. WordPress multisite came to replace the multi-user edition which allowed users to securely manage their templates and settings without affecting any other users. What is a WordPress multisite? WordPress multisite allows you to build a network of subsites with a single WordPress instance – a good example for this is wordpress.com – and manage them from one dashboard. This feature is integrated into WordPress core, so you don’t need to download extra software to…

The Last Guide to WP CLI You’ll Ever Need

10 MIN READ

In the modern web, WordPress has a pretty big market share. And with good reason. It provides good customization opportunities, a big library of plugins and themes, and a user-friendly graphical interface. Many WordPress website developers create amazing websites without having to write a single line of code. They use plugins and visual builders instead. But there are cases where it’s all about simplicity and performance (like scripting routine tasks) when the graphical interface is unnecessary. This is when WP CLI comes in handy. What if I told you that you can do anything with WordPress without a UI, without buttons, or our beloved Dashboard? All you have to do is call commands. You can even use them in your scripts to integrate WordPress with other programs or to automate routine tasks. Let’s dive in and find out! What is WP-CLI? The WordPress ecosystem has many hidden treasures and one…

A Simple Guide on How to Create WordPress Custom User Roles and Capabilities

17 MIN READ

Creating WordPress custom user roles and capabilities you’re bound to experience the agony of choice. Your head will be spinning from endless opportunities. Basically, you may have no clue which roles and capabilities you should create and how to best combine them. That’s why we’re here to tell you why you need custom user roles and capabilities to begin with, what you should consider when assigning roles and capabilities, and, last but not least, how to create them. But before we delve into all that, let’s understand what WordPress custom user roles are all about. For starters, assigning multiple user roles allows you to share the burden of website management with other users. At the same time, it gives these users separate access to your website meaning they don’t have to use your login credentials. This enhances the safety of your website. WordPress offers a set of 6 pre-defined user…

Z-Index Explained: The Alignment of Web Page Elements

9 MIN READ

Are you wrecking your brain trying to figure out the stacking order of HTML elements? Let us lend you a helping hand and do the heavy lifting for you. First things first, here’s what you need to know about the z-index: The z-index CSS property sets the z-order. That’s why developers use it to determine the order in which elements are positioned within the stacking order. Usually, 2 types of errors occur. The first one is because the z-index only works when an element is a) a positioned element, b) a flex item or c) a grid item. Positioned element refers to an element whose position property is other than <static>. Flex items are elements whose parent element’s display property is <flex> or <inline-flex>. As for grid items, the parent element’s display property is <grid> or <inline-grid>. If you’ve used z-index and for some reason, it didn’t work out, it…

Subscribe

Get the latest posts delivered right to your inboxEMAIL ADDRESS

Enter valid email