/**
 * Custom Post Types
 */
 
add_action( 'init', 'register_cpt_homepage' );

function register_cpt_homepage() {

    $labels = array( 
        'name' => _x( 'Homepage', 'homepage' ),
        'singular_name' => _x( 'homepage', 'homepage' ),
        'add_new' => _x( 'Add New', 'homepage' ),
        'add_new_item' => _x( 'Add New homepage', 'homepage' ),
        'edit_item' => _x( 'Edit homepage', 'homepage' ),
        'new_item' => _x( 'New homepage', 'homepage' ),
        'view_item' => _x( 'View homepage', 'homepage' ),
        'search_items' => _x( 'Search Homepage', 'homepage' ),
        'not_found' => _x( 'No homepage found', 'homepage' ),
        'not_found_in_trash' => _x( 'No homepage found in Trash', 'homepage' ),
        'parent_item_colon' => _x( 'Parent homepage:', 'homepage' ),
        'menu_name' => _x( 'Homepage', 'homepage' ),
    );

    $args = array( 
        'labels' => $labels,
        'hierarchical' => false,
        'description' => 'Ovo je homepage',
        'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ),
        'taxonomies' => array( 'homepage' ),
        'public' => true,
        'show_ui' => true,
        'show_in_menu' => true,
        
        
        'show_in_nav_menus' => true,
        'publicly_queryable' => true,
        'exclude_from_search' => false,
        'has_archive' => true,
        'query_var' => true,
        'can_export' => true,
        'rewrite' => true,
        'capability_type' => 'post'
    );

    register_post_type( 'homepage', $args );
}






<?php $args = array( 'post_type' => 'homepage', 'posts_per_page' => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post(); ?>

	
	<?php the_content(); ?>

    
<?php endwhile; ?>