Add Columns to Admin CPT Listing
See David Lord site for implementation.
ACF, CPT, Custom Admin | Type: PHP
Adding a Label to the Main Editor for Custom Post Types
When a CPT relies on a lot of custom fields via ACF, the unlabeled main editor can be confusing (“What’s this for?”). This code goes in [...]
ACF, CPT, Custom Admin, PHP | Type: PHP
Common WP functions converted to variables
Sometimes functions are easier to use in conditional statements if converted to variables.
ACF, PHP, WP/CP | Type: PHP
Conditional Based on Field Value
Conditional based on values for single-value fields (radio buttons, select, etc).
ACF, PHP | Type: PHP
CPT to CPT Reverse Query
Reverse query from different post types associated via ACF relationship field.
ACF, CPT, WP Query | Type: PHP
Date/Time Examples
$today = date('Ymd'); //string $testdate = get_field( 'test_date' ); //string $testerdate = DateTime::createFromFormat( 'Ymd', $testdate ); //convert string to object echo '<p>Today: '.$today.'</p> //string echo '<p>Test [...]
ACF, Date/Time, PHP | Type: PHP
Display Dates if Start and End Dates Same Month
Handy snippet for displaying event dates when events can stretch over multiple days.
ACF, Date/Time, PHP | Type: PHP
Event Listing Ordered by Date
Basic events listing, ordered by date, past events disappearing.
ACF, WP Query, WP/CP | Type: PHP
Filter Custom Post Type by Custom Fields
Can be found on an Evo blog post with more explanation.
ACF, PHP, WP Query, WP/CP | Type: PHP
Full-width Responsive Autoplay Video Slider
This is an autoplay video slider. It's a lot like the single full-width video, but with an additional container to hold the video slides and jQuery to make it slide.
ACF, CSS, jQuery, PHP, Video | Type: Javascript






