First copy and past this code in your function.php file
add_action ('init', 'create_post_type');
function create_post_type() {
register_post_type('slider_images',
array(
'labels' => array(
'name' => __('Slider Images'),
'singular_name' => __('Slider Image')
),
'public' => true,
'has_rewrite' => true,
'rewrite' => array('slug' => 'slider_images'),
'supports' => array('title')
)
);
}
Then when you whant to display past this code
<?php
$args = array(
'post_type'=>'slider_images',
'order'=> 'ASC',
);
$i = 1;
global $more;
query_posts( $args );
while (have_posts()) : the_post();
$more = 0;
?>
<li><img src="<?php echo get_field('image'); ?>"></li>
<? endwhile;wp_reset_query();?>