__( 'Homepage Services First', 'twentytwelve' ),
'id' => 'sidebar-4',
'description' => __( 'Appears on posts and pages except the optional Front Page template, which has its own widgets', 'twentytwelve' ),
'before_widget' => '
',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Homepage Services Second', 'twentytwelve' ),
'id' => 'sidebar-5',
'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
) );
register_sidebar( array(
'name' => __( 'Homepage Services Third', 'twentytwelve' ),
'id' => 'sidebar-6',
'description' => __( 'Appears when using the optional Front Page template with a page set as Static Front Page', 'twentytwelve' ),
'before_widget' => '',
'after_widget' => '
',
'before_title' => '',
'after_title' => '
',
) );
}
add_action( 'widgets_init', 'butterfly_widget_init' );
add_action('init', 'cptui_register_my_cpt_testimonial');
function cptui_register_my_cpt_testimonial() {
register_post_type('testimonial', array(
'label' => 'Testimonials',
'description' => 'In promotion and of advertising, a testimonial or show consists of a persons written or spoken statement extolling the virtue of a product.',
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'capability_type' => 'post',
'map_meta_cap' => true,
'hierarchical' => false,
'rewrite' => array('slug' => 'testimonial', 'with_front' => true),
'query_var' => true,
'supports' => array('title','editor','excerpt','trackbacks','custom-fields','comments','revisions','thumbnail','author','page-attributes','post-formats'),
'labels' => array (
'name' => 'Testimonials',
'singular_name' => 'Testimonial',
'menu_name' => 'Testimonials',
'add_new' => 'Add Testimonial',
'add_new_item' => 'Add New Testimonial',
'edit' => 'Edit',
'edit_item' => 'Edit Testimonial',
'new_item' => 'New Testimonial',
'view' => 'View Testimonial',
'view_item' => 'View Testimonial',
'search_items' => 'Search Testimonials',
'not_found' => 'No Testimonials Found',
'not_found_in_trash' => 'No Testimonials Found in Trash',
'parent' => 'Parent Testimonial',
)
) ); }
if(function_exists("register_field_group"))
{
register_field_group(array (
'id' => 'acf_testimonial',
'title' => 'Testimonial',
'fields' => array (
array (
'key' => 'field_54a6da25ae5de',
'label' => 'Name',
'name' => 'name',
'type' => 'text',
'instructions' => 'Person\'s Name who is giving the Testimonial.',
'required' => 1,
'default_value' => 'John Smith',
'placeholder' => 'Clients Name',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
array (
'key' => 'field_54a6daa6ae5df',
'label' => 'Name of Organisation ',
'name' => 'organisation_name',
'type' => 'text',
'default_value' => 'Small Biz',
'placeholder' => '',
'prepend' => '',
'append' => '',
'formatting' => 'html',
'maxlength' => '',
),
),
'location' => array (
array (
array (
'param' => 'post_type',
'operator' => '==',
'value' => 'testimonial',
'order_no' => 0,
'group_no' => 0,
),
),
),
'options' => array (
'position' => 'normal',
'layout' => 'no_box',
'hide_on_screen' => array (
),
),
'menu_order' => 0,
));
}
?>