• Resolved webdesignby

    (@websitedesignby)


    I have used pods extensively in a project that was built in 2017. It has been working without major issues until recently.

    I had been hooking into the pods_meta_groups action to control the grouping of the meta-boxes.

    function ewas_aircraft_pod_metaboxes ( $type, $name ) { 
        
        $pod = 'ewas_aircraft';
        $context = 'normal';
        $priority = 'high';
        
        // Aircraft Images...
        $tile = 'Aircraft Images';
        $fields = array('aircraft_images');
        pods_group_add( $pod, $tile, $fields, $context, $priority);
        
        // Aircraft Info...
        $tile = 'Aircraft Info';
        $fields = array('public', 'featured', 'sold', 'manufacturer_model', 
                        'serial_number', 'serial_number_hide', 'model_year', 'registration_number',
                        'registration_number_hide', 'takeoff_gross_weight', 'landing_gross_weight', 'equipment'
                    );
        pods_group_add( $pod, $tile, $fields, $context, $priority);
    }
    
    // Hook into Pods Metaboxes 
    add_action( 'pods_meta_groups', 'ewas_aircraft_pod_metaboxes', 10, 2 );
    

    This code now is just showing the plain custom fields and text boxes and not using the field definitions created in pods. See attached screenshot.
    https://drive.google.com/file/d/13RLA0KUZkDwlQIg2dJfvKnhu1f_jOFr3/view?usp=sharing

    I see I can now customize the user interface with groupings in pods and could recreate the interface that way. Unfortunately it doesn’t appear I can move existing fields into new field groups.

    Any assistance would be appreciated. Let me know if more information is required.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘pods_group_add is broken now’ is closed to new replies.