Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Thread Starter Prince Singh

    (@curi0us_s0ul)

    this doesnt work for field type accordion

    $epl_wpimport->add_field(
    	        'property_location',
    	        'Property Location',
    	        'accordion',
    	        array(
    	                'enter_address' => array(
    	                        'Enter Address',
    	                        $epl_wpimport->add_field( 'property_address', 'Property Address', 'text' )
    	                ),
    	                'enter_coordinates' => array(
    	                        'Enter Coordinates',
    	                        $epl_wpimport->add_field( 'property_coordinates', 'Property Coordinates', 'text' )
    	                ),
    	        )
    	);

    Please provide any sample usage to group fields in accordion

    Plugin Author WP All Import

    (@wpallimport)

    There is no field type ‘accordion’. You can nest fields in a number of ways and we have examples of doing so here: https://www.wpallimport.com/documentation/addon-dev/nested-fields/

    If you change ‘accordion’ to ‘radio’, your code will work:

    $epl_wpimport->add_field(
    	'property_location',
    	'Property Location',
    	'radio',
    	array(
    	        'enter_address' => array(
    	                'Enter Address',
    	                $epl_wpimport->add_field( 'property_address', 'Property Address', 'text' )
    	        ),
    	        'enter_coordinates' => array(
    	                'Enter Coordinates',
    	                $epl_wpimport->add_field( 'property_coordinates', 'Property Coordinates', 'text' )
    	        ),
    	 )
    );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add accordions to group fields ?’ is closed to new replies.