search ]

Posts about: WordPress Development | Page 3

Introduction to Variable Fonts – The Future of Web Fonts

Typography has interested me since I started developing websites and getting into design, even before there was widespread use of web fonts. And although web fonts have been around for almost ten years now, we’ve always had to balance between [...]

Transfer data from ACF to JS with wp_localize_script

One of the challenges you’ll encounter when developing WordPress themes is finding a way to make your data (accessible via PHP) also accessible in scripts. For example, you might have a popup that appears every time a user clicks a [...]

How to Install Tailwind CSS in Your WordPress Theme

This guide will walk you through installing and configuring Tailwind CSS in WordPress themes. The process is straightforward, so I’ve put together a concise guide to help you get started. But before diving into the steps, let’s briefly explore what [...]

WP_Query – Filter Posts by Meta Fields

In this short post, I assume you have basic knowledge of working with the WP_Query class in WordPress. Before we begin, let’s provide some basic examples similar to those found in the WordPress Codex. These examples are relevant when you [...]

Dynamic Recipient Email Address Based on Dropdown Menu

As a WordPress developer working with large companies, I have encountered several times the need to dynamically change the email address to which the form is sent. For example, a situation where a company wants a dropdown on the Contact [...]

The Hierarchy of Page Templates in WordPress

If you are a WordPress developer or using a child theme to modify your parent theme, it is reasonable to assume that you will reach a point where you will need to understand the hierarchy of WordPress themes. This hierarchy [...]

Show the Total Number of Comments in WordPress Templates

In WordPress, there is a built-in function called wp_count_comments that allows you to get the total number of comments for a specific post based on its ID. The function returns the total number of pending comments, approved comments, spam comments, [...]

Few ways to disable Gutenberg on WordPress

Gutenberg is about to be added soon to the WordPress core. These are good news for some people and less good news for others. It can be estimated that at the current stage, the vast majority of websites are not [...]

How to Register ACF Fields Using PHP in WordPress

Registering ACF fields using PHP reduces the number of database reads and enables the use of Version Control like GIT and similar. The option to define fields via code decreases the chance of losing information that exists in a normal [...]

Show Posts from another Blog using REST API

As you probably already heard, REST API provides you with the ability to interact with your WordPress site externally, for example, from a mobile application or another website. Let’s look at a short code example that describes how you can [...]

You Better use WP_DEBUG_LOG in WordPress Development

In this short post, we’ll see what the correct way is to monitor PHP errors on WordPress sites using WP_DEBUG_LOG. Like most things related to WordPress development, it can be said that the best way to understand a specific function [...]

Savvy WordPress Development