Posts about: WordPress Development | Page 5

What is the Parallax Scrolling Effect and how to use it?

Returning to 2011, the parallax scrolling effect created buzz and emerged as a new trend in websites design. Many trends have come and gone since then, but this effect has established its place and is not planning to leave any [...]

Exploring WordPress MU-Plugins: What You Need to Know

At its core, WordPress has thousands of core functions and useful tools that definitely contribute to making WordPress the number one content management system in the world. Many WordPress features are familiar to us such as custom post types, hooks, [...]

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 making server-side data (accessible via PHP) available in your JavaScript files. For example, you might have a popup whose message should be translatable, or an AJAX request that needs [...]

WP_Query – Filter Posts by Meta Fields

This post assumes you have basic knowledge of the WP_Query class in WordPress. I’ll start with some basic examples similar to those in the WordPress Codex, then move to the real power: meta_query. These examples are relevant when you want [...]

The Hierarchy of Page Templates in WordPress

If you develop WordPress themes or use child themes to customize an existing one, you’ll eventually need to understand how the template hierarchy works. The hierarchy determines which template file WordPress loads for each type of content – posts, pages, [...]

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, [...]

A Few Ways to Disable Gutenberg in WordPress

Since WordPress 5.0, the Gutenberg block editor has been the default content editor. While it offers powerful block-based editing, many developers and site owners prefer the classic editing experience for existing projects, client sites, or workflow compatibility. All the methods [...]

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 [...]