A king among men. On your weekend too no less! Thank you very much for taking the time to help @John Huebner
Hi John,
Sadly this won’t work without a repeater. How do I make it work with a Post Object (selector2 I think) field with multiple values instead?
Thank you for all your help!
Thank you so much John!
Just a quick change I made for UI’s sake. Instead of a repeater, I’m using a Post Object field which allows for multiple values, and it returns a Post ID. How does that impact your code?
Here’s how far I got:
add_filter('acf/load_field/name=addons', 'co_acf_load_default_addons', 10, 3);
function co_acf_load_default_addons($field) {
$field['choices'] = array(1593, 1553, 1588);
return $field;
}
But it’s not there yet… Any suggestions?
Is it possible to pre-populate them with a filter, when they are NULL?