<meta itemprop="description" name="description" content="<?php echo $seo_description; ?>">
?/* Create Portfolio post type */
if (!function_exists('create_post_type')) {
function create_post_type() {
register_post_type( 'portfolio_page',
array(
'labels' => array(
'name' => __( 'Portfolio','qode' ),
'singular_name' => __( 'Portfolio Item','qode' ),
'add_item' => __('New Portfolio Item','qode'),
'add_new_item' => __('Add New Portfolio Item','qode'),
'edit_item' => __('Edit Portfolio Item','qode')
),
'public' => true,
'has_archive' => true,
'rewrite' => array('slug' => 'portfolio_page'),
'menu_position' => 4,
'show_ui' => true,
'supports' => array('author', 'title', 'editor', 'thumbnail', 'excerpt', 'page-attributes')
)
);
register_post_type('testimonials',
array(
'labels' => array(
'name' => __('Testimonials','qode' ),
'singular_name' => __('Testimonial','qode' ),
'add_item' => __('New Testimonial','qode'),
'add_new_item' => __('Add New Testimonial','qode'),
'edit_item' => __('Edit Testimonial','qode')
),
'public' => false,
'show_in_menu' => true,
'rewrite' => array('slug' => 'testimonials'),
'menu_position' => 4,
'show_ui' => true,
'has_archive' => false,
'hierarchical' => false,
'supports' => array('title', 'thumbnail')
)
);
flush_rewrite_rules();
}
}