Posted by on ', 'alba' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), sprintf( esc_attr__( 'View all posts by %s', 'alba' ), get_the_author() ), esc_html( get_the_author() ) ); } endif; /*finish*/ /*create custom post type in admin or register*/ /*custom post type index slider*/ add_action('init','cody_featured_posttype_slider'); function cody_featured_posttype_slider() { $labels = array( 'name' => __('Featured Slider','alba'), 'singular_name' => __('Featured Slider', 'alba'), 'add_new' => __('Add New Slide', 'alba'), 'add_new_item' => __('Add New Link','alba'), 'edit_item' => __('Edit Link','alba'), 'new_item' => __('New Link','alba'), 'all_items' => __('All Links','alba'), 'view_item' => __('View Link','alba'), 'search_items' => __('Search Links','alba'), 'not_found' => __('No Links found','alba'), 'not_found_in_trash' => __('No Links found in Trash','alba'), ); $args = array( 'labels' => $labels, 'public' => true, 'show_ui' => true, 'capability_type' => 'post', 'hierarchical' => false, 'has_archive' => 'featured', 'rewrite' => true, 'supports' => array('title','editor','thumbnail','custom_type') ); register_post_type( 'cody_featured_slider' , $args ); } $includes_path = get_template_directory() . '/script/'; require_once ($includes_path . 'admin.php'); require_once ($includes_path . 'commentshow.php'); require_once ($includes_path . 'pagination.php'); require_once ($includes_path . 'enquescript.php'); ?>