Tutorials & Guides, Freelance WordPress Developer | Page 16

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

The SEO impact of Nofollow, Sponsored & UGC links

In September 2019, Google introduced two new link attributes – rel="sponsored" and rel="ugc" – alongside the existing rel="nofollow". These attributes help Google better understand the nature of links on a page. Since March 2020, Google treats all three attributes as [...]

Disavow Tool – Disengagement from Low-Quality Links

Google’s algorithms are now highly effective at automatically ignoring low-quality and spammy backlinks. In most cases, you do not need to take manual action. However, for the links Google fails to identify on its own, you can flag them using [...]

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

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