WordPress Developer Ukraine, Kyiv
Get ACF field values in WordPress templates and functions

Get ACF field values in WordPress templates and functions

Advanced Custom Fields is one of the most installed WordPress plugins for a reason: it bridges the gap between WordPress as a blogging platform and WordPress as a structured content management system without requiring developers to write custom meta box code from scratch. Instead of building registration arrays, sanitization callbacks, and rendering functions for every…
Add a Dynamic Date to Gutenberg, ACF Fields, and Contact Form 7

Add a Dynamic Date to Gutenberg, ACF Fields, and Contact Form 7

Dynamic dates show up on almost every WordPress site — most often in the footer copyright line, but also in post content, ACF fields, Contact Form 7 forms, and email templates. The typical approach is to hardcode the year and update it manually every January, which developers invariably forget. WordPress shortcodes solve this cleanly: register…
How to get ACF field on the different pages

How to get ACF field on the different pages

Retrieving ACF fields outside the loop ACF’s get_field() function works inside the WordPress loop without extra arguments, but when you need to read a field value from functions.php, an AJAX handler, or a template for a different post, you have to pass the post ID explicitly.
ACF link field values are lost after database migration

ACF link field values are lost after database migration

ACF link field values lost after database migration Migrating a WordPress database from production to local — or between servers — is routine. But ACF Link fields store absolute URLs in a serialized format, which means a plain search-and-replace in phpMyAdmin will corrupt the data. Here’s how to handle it properly.