oh dangg.. Thanks John for the clarification. Wasn’t aware of that. Having in mind your experience – what would be then the most optimal way of achieving that? I was thinking that if I have a CPT called products and to create another CPT like promotions and then based on that somehow connect both..
here is my code but doesnt work:
function my_acf_load_field( $field ) {
$current_date = get_sub_field('data');
$trimmed = substr($current_date, -7);
$field['default_value'] = $trimmed;
$field['disabled'] = 1;
return $field;
}
add_filter('acf/load_field/name=month_year', 'my_acf_load_field');
Hi did you manage to achieve that? Im looking for the same solution
Anybody? I have no clue how to solve that.
thank you so much for the clarification. So maybe you will be able to suggest me the proper way.
My site includes quite few repeater fields. On a page “A” I’m showing all my posts from CPT and one of the details are their repeater field values. What im trying to achieve is to create filtering for that kind of thing. I’ve tried many commercial plugins and all of them has failed – mainly due to way repeater field are stored in DB.
What should I do then?