Enable to select post by Select2
##Install You can install select2 posts field as a Wordpress plugin
- Download plugin
- Place in
wp-content/plugins
directory - Active in Wordpress plugin section
own_select2_posts
as a field type.
array(
'name' => 'Select',
'placeholder' => 'Set your value',
'id' => $prefix . 'select2_posts',
'type' => 'own_select2_posts',
'post_type' => 'post',
'width' => '300px',
)
- Add support for repeatable group.
- Add multiple selections.
- Add multiple post types.