search ]

Tutorials & Guides, Freelance WordPress Developer | Page 13

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

17 WordPress Statistics We Cannot Ignore

If you’re still not convinced that WordPress is the most popular content management system in the world, here’s a list of the most interesting statistics about WordPress. Let’s get straight to those statistics: 17 Facts About WordPress That Will Amaze [...]

About Featured Snippets in Google Search Results

When a user asks a specific question in search, Google may choose to display the result as a special block called a Featured Snippet at the top of the search results window. This Featured Snippet contains a summary of the [...]

Check if a Product Belongs to a Specific Category or Tag

If you have tried using the in_category() function to check if a specific product belongs to a certain product category, you probably did not succeed. In this guide, we will see why… This is a common mistake indeed. So let’s [...]

Adding New Custom Fields to WooCommerce Products

WooCommerce is undoubtedly the most powerful E-Commerce plugin for WordPress. One of its main advantages is that it provides an API that allows you to do almost anything you want with your digital store. In this post, we will explain [...]

Properly Retrieve WooCommerce Products in Your Template

wc_get_products() and WC_Product_Query are the correct way to retrieve products in WooCommerce. They are functionally equivalent to get_posts and WP_Query in WordPress core, and they accept an array of arguments to define your query criteria. Avoid using WP_Query or direct [...]

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 Change the WordPress admin URL (Login URL)

One of the most popular ways to breach WordPress sites is a Brute Force Attack. In this type of attack, hackers try many combinations of usernames and passwords in order to enter the WordPress admin interface. Especially when everyone knows [...]

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

Understanding CSS clip-path: How to Create Unique Shapes

clip-path is a very interesting CSS property that allows you to “clip” a certain part of elements such as SVG, images, and HTML. The property creates a shape that determines which part of the element will be visible. The part [...]

Creating a Responsive Table with CSS

I am sure you will find many methods and sources showing how to create a responsive table, some are good and some less so. Among these methods, you will find sophisticated tables built using CSS Grid, and even very simple [...]

Savvy WordPress Development official logo