diff --git a/includes/class-tni-core-custom-fields.php b/includes/class-tni-core-custom-fields.php index f672a81..b3184e7 100644 --- a/includes/class-tni-core-custom-fields.php +++ b/includes/class-tni-core-custom-fields.php @@ -143,6 +143,70 @@ public function register_field_groups() { 'menu_order' => 0, )); + acf_add_local_field_group( array( + 'key' => 'group_seo_info', + 'title' => 'SEO Information', + 'fields' => array ( + array ( + 'key' => 'field_seo_description', + 'label' => __( 'SEO Description', 'tni-core' ), + 'name' => 'seo_description', + 'type' => 'textarea', + 'instructions' => __( 'Text that appears with article when shared on social networks.', 'tni' ), + 'required' => 0, + 'conditional_logic' => 0, + 'wrapper' => array ( + 'width' => '', + 'class' => '', + 'id' => '', + ), + 'default_value' => '', + 'placeholder' => '', + 'maxlength' => '', + 'rows' => '', + 'new_lines' => 'wpautop', + ), + ), + 'location' => array ( + array ( + array ( + 'param' => 'post_type', + 'operator' => '==', + 'value' => 'post', + ), + ), + array ( + array ( + 'param' => 'post_type', + 'operator' => '==', + 'value' => 'page', + ), + ), + array ( + array ( + 'param' => 'post_type', + 'operator' => '==', + 'value' => 'magazines', + ), + ), + array ( + array ( + 'param' => 'post_type', + 'operator' => '==', + 'value' => 'blogs', + ), + ), + ), + 'menu_order' => 0, + 'position' => 'normal', + 'style' => 'default', + 'label_placement' => 'top', + 'instruction_placement' => 'label', + 'hide_on_screen' => '', + 'active' => 1, + 'description' => '', + )); + register_field_group( array ( 'id' => 'acf_magazine', 'title' => __( 'Magazine Details', 'tni-core' ), diff --git a/includes/jetpack-customization.php b/includes/jetpack-customization.php new file mode 100644 index 0000000..0b71b0a --- /dev/null +++ b/includes/jetpack-customization.php @@ -0,0 +1,32 @@ +