"오디오"라는 맞춤 게시 유형이 있습니다. 페이지의 모든 게시물을 표시하려면 아래 코드를 작성했으나 작동하지 않습니다.페이지에 맞춤 게시물 유형 게시물 표시
<?php
$post_type = "audioes";//post type names
echo "djnbfj";
$post_type->the_post();
// The Query
$the_query = new WP_Query(array(
'post_type' => $post_type,
'orderby' => 'post_date',
'order' => 'DESC',
'showposts' => 1,
));
// The Loop
?>
<?php
while ($the_query->have_posts()) : $the_query->the_post(); ?>
<div class="issue-content">
<?php get_template_part('includes/breadcrumbs', 'page'); ?>
<?php if (has_post_thumbnail()) { the_post_thumbnail();}
get_template_part('loop-audio', 'page');
?>
</div><!--issue-content-->
<?php endwhile; ?>
</div> <!-- end #left_area -->
위의 사용자 정의 게시물 유형을 어떻게 얻을 수 있습니까?
내 게시물 유형 "오디오". – Ranjit