Posts about: WordPress Development | Page 7

How to Display Recent Comments in WordPress (No Plugin)

WordPress includes a powerful comments system that allows visitors to engage with you and other readers. Comments are essential for building a community, encouraging discussions, and creating interaction between you and your audience. Even if you’re not a fan of [...]

Stop Video Outside the Viewport on WordPress Sites

In one of the projects I worked on, a considerable number of videos (video) were required on specific pages. Some of those videos needed to span the entire width of the screen, while others, smaller ones, were placed in a [...]

Preload Critical Assets to Improve Performance

There are many ways to improve a website performance. One of the ways is to preload specific files that you know will be required later and are essential for the quick rendering of the page. The preload value of the [...]

How to Create a Slider in WordPress with the Vegas Slideshow

Considering that sliders and slider plugins (usually bundled with purchased themes) are quite slow and cumbersome to use, it’s often preferable in many cases to build your own slider to avoid headaches for both you and your clients. Of course, [...]

How to Display a Message for Recently Updated Posts

If a post has been updated recently, it can be helpful to notify readers that the content has changed. This lets returning visitors know the information is fresh and worth reviewing again. This technique uses PHP to compare dates, CSS [...]

Using Advanced Custom Fields without Frontend Dependency

The plugin Advanced Custom Fields provides a simple, visual interface for creating metaboxes. The result is intuitive and easy for clients to edit. ACF includes several functions for pulling field values in your templates, but I recommend not using them [...]

How to Self-Host Google Analytics 4 Locally for Better Page Speed

Google Analytics 4 (GA4) uses the gtag.js library, loaded from Google’s servers with a cache expiration of just two hours. Speed testing tools like Google PageSpeed Insights and GTmetrix flag this as a “Serve static assets with an efficient cache [...]

Optimizing Database Queries in ACF for Better Performance

Sometimes the functions get_field and the_field of the Advanced Custom Fields plugin are sufficient for pages with a few custom fields. However, for pages with many fields or very complex fields (such as those in Repeater or Flexible Fields), we [...]

Creating a Mailing List with Mailchimp for WordPress Plugin

Update (February 2026): Mailchimp has significantly reduced its free plan limits. As of February 2026, the free plan allows only 250 contacts and 500 emails per month, with no automation. This guide remains relevant for the MC4WP plugin setup, but [...]

How to Build an Exit Intent Popup in WordPress (No Plugins)

Exit intent popups are one of the most effective conversion tools on e-commerce sites and content-heavy WordPress blogs. The concept is simple: JavaScript tracks the user’s mouse movement, and when it looks like they’re about to leave, a popup appears [...]

Passing Variables using get_template_part in WordPress

Similar to the standard include() or require() PHP functions, WordPress provides its own function for loading templates (PHP files), called get_template_part(). As its name suggests, it is designed to call parts of templates in WordPress sites. While using the get_template_part() [...]

Optimize WordPress Configuration with wp-config.php

WordPress users are familiar with the wp-config.php file as the one used to set up database information – the database name, username, password, and its location (as well as table prefixes, security keys, and language). However, many users are unaware [...]