以下代码仅检索具有自定义分类法“Slider”的自定义帖子类型
我想把他们的订单改成ASC。
代码:
<?php // Retrive custom post type with a custom taxonomy assigned to it
$posts = new WP_Query(\'post_type=page_content&page_sections=Slider (Front Page)\') ?>
<?php while ( $posts->have_posts() ) : $posts->the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php wp_reset_query(); ?>
不确定是否应该使用数组(不确定如何使用)。有什么建议吗?