• smitz

    (@temporary_user)


    Hello,
    first of all thanks for the the work!

    I’m trying to add a status with the types ‘concept, approved, denied’ to every inbound message but the post type is not recognized by the Advanced custom fields plugin.

    I’m thinking its because of the problem described here:
    https://wordpress.org/support/topic/meta-boxes-for-flamingo-inbound-messages/

    Do you, or anyone, have a working example of how to do this hook exactly?
    I cannot reach the user in the topic above.

    For example, this is the code generated by acf and works on the page post type, but not flamingo_inbound.
    ———————————————————————-

    if( function_exists('acf_add_local_field_group') ):
    
        acf_add_local_field_group(array(
            'key' => 'group_6371408738f84',
            'title' => 'title',
            'fields' => array(
                array(
                    'key' => 'field_6371408712d65',
                    'label' => '',
                    'name' => '',
                    'aria-label' => '',
                    'type' => 'select',
                    'instructions' => '',
                    'required' => 0,
                    'conditional_logic' => 0,
                    'wrapper' => array(
                        'width' => '',
                        'class' => '',
                        'id' => '',
                    ),
                    'choices' => array(
                        'concept' => 'concept',
                        'approved' => 'approved',
                        'denied' => 'denied',
                    ),
                    'default_value' => 'concept',
                    'return_format' => 'value',
                    'multiple' => 0,
                    'allow_null' => 0,
                    'ui' => 0,
                    'ajax' => 0,
                    'placeholder' => '',
                ),
            ),
            'location' => array(
                array(
                    array(
                        'param' => 'post_type',
                        'operator' => '==',
                        'value' => 'page',
                    ),
                ),
            ),
            'menu_order' => 0,
            'position' => 'normal',
            'style' => 'default',
            'label_placement' => 'top',
            'instruction_placement' => 'label',
            'hide_on_screen' => '',
            'active' => true,
            'description' => '',
            'show_in_rest' => 0,
        ));
        
        endif;

    The page I need help with: [log in to see the link]

  • The topic ‘Add ACF field to flamingo_inbound post type’ is closed to new replies.