ACF

Advanced Custom Fields tutorials and code: display fields, query by meta value, date fields with Elementor Loop Grid, and custom themes built with ACF.

ACF Code Snippets

ACF Gutenberg Blocks: How to Build Custom Blocks With block.json

Build custom ACF Gutenberg blocks with block.json in 4 steps: folder, registration, fields and a PHP template, with copy-paste code.

Read article

ACF Code Snippets: 6 Essential Examples (Link, Gallery, Repeater & More)

Six essential ACF code snippets for custom WordPress themes, safe and ready to paste.

View code

Add Custom Post Type to Search Results and Filter by ACF Field (2 Ways)

Add custom post types to WordPress search results and filter them by an ACF field.

View code

Elementor Loop Grid Order By ACF Date Field (Upcoming Events First)

Quick answer: For an Elementor Loop Grid order by ACF date field, give the Loop Grid a Query ID (for example dd_event_date) and hook into elementor/query/dd_event_date to set meta_key to your field and orderby to meta_value_num. ACF saves Date Picker values as Ymd, so numeric sorting puts the soonest date first. I use this on […]

View code
Back to top