Pass arguments to WP_Query with a tag of a custom post.
#wordpress#php
<?php// args$args=array('post_type'=>'custom-post','order'=>'ASC','posts_per_page'=>-1// Get all posts);$the_query=newWP_Query($args);?><?phpif($the_query->have_posts()):?><?phpwhile($the_query->have_posts()):$the_query->the_post();?><ahref="<?phpthe_permalink();?>"><?phpthe_title();?></a><?phpendwhile;?><?phpendif;?><?phpwp_reset_query();// Reset loop ?>