WordPress Developer Ukraine, Kyiv
Find posts published in a specific date range using WP_Query

Find posts published in a specific date range using WP_Query

Date-based post retrieval is a common requirement in WordPress development that many developers solve less elegantly than they should. Typical use cases include a “This week’s posts” sidebar widget, an “Articles from last month” archive section, a year-in-review landing page that lists everything published in a calendar year, or an events-style content type where posts…
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…