Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working preserve order #18

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
Update acf-country-v4.php
Preserve Field Field for v4 acf added
  • Loading branch information
juslintek authored Jun 12, 2018
commit ae49baf38d8d0c87be9e912d9a00075317890345
19 changes: 19 additions & 0 deletions fields/acf-country-v4.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,25 @@ function create_options( $field )
?>
</td>
</tr>
<tr class="field_option field_option_<?php echo $this->name; ?>">
<td class="label">
<label><?php _e('Preserve Order','acf'); ?></label>
</td>
<td>
<?php
do_action('acf/create_field', array(
'type' => 'radio',
'name' => 'fields['.$key.'][preserve_order]',
'value' => $field['preserve_order'],
'choices' => array(
1 => __('Yes','acf'),
0 => __('No','acf'),
),
'layout' => 'horizontal',
));
?>
</td>
</tr>
<?php

}
Expand Down