Home Forums Feature Requests Repeater: default fields/data Reply To: Repeater: default fields/data

  • Well, here’s how to do it in 5.5.13:

    add_filter('acf/load_value/key= key_58c7ee3a37aee', 'default_value_ key_58c7ee3a37aee', 10, 3);
    function default_value_ key_58c7ee3a37aee($value, $post_id, $field) {
        if ($value === false) {
            $value = array(
                    'field_58984ddb5b8cc' => 'My title',
                    'field_58985045abac0' => 'My content',
                    'field_58984ddb5b8cc' => 'Another title for a content-less row',
        return $value;

    Same syntax, only difference is you put it inside the appropriate filter. I prefer to use this code in the same file that I have exported the field in question.

  • We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.