search

Posts about: WordPress Development | Page 5

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

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

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, the best way to understand a specific function is to search for it [...]

How to Prevent PHP Error Display in WordPress

PHP comments and messages are helpful for WordPress developers to “debug” issues in the code they or others have written. Of course, it wouldn’t be professional if these were displayed for site visitors, so in this short post, we’ll see [...]

How to Easily Disable RSS Feeds on WordPress Sites

WordPress is known to people as a robust and reliable blogging system. People use RSS Feeds to subscribe to new content you publish through third-party applications like Feedly, for example. However, not everyone uses WordPress for a blog, and there [...]

Mastering WooCommerce Hooks: A Complete Guide

Before diving into WooCommerce hooks, let’s briefly cover how hooks work. Hooks in WordPress allow you to add or modify code without editing the source files, making them essential for developers. There are two types of hooks in WordPress: Actions [...]

WordPress Hooks Explained: A Beginner’s Guide

If you’re developing with WordPress, hooks are one of the first concepts you need to master. Since modifying WordPress core files is strictly forbidden, hooks are the way to customize behavior. They allow developers to “attach” their own code to [...]

Savvy WordPress Development official logo