1
难这一个:WordPress的显示自定义后类型与自定义分类和当期
我试图从自定义后类型“specialisaties”与自定义分类“specialismen”和需要的所有帖子从URL加载当前加载的'term'。
目前我有这个代码输出'超级大国'这个词。
<?php $loop = new WP_Query(array('post_type'=>'specialisaties', 'taxonomy'=>'specialismen', 'term' => 'superpower', 'orderby' => 'menu_order', 'order' => 'asc')); ?>
<?php while ($loop->have_posts()) : $loop->the_post(); ?>
<h1><?php the_title() ?></h1>
<?php the_content() ?>
<?php endwhile; ?>
这会加载具有“超级大国”一词的特定帖子。如何从我正在加载的网址动态获取“字词”?
在此先感谢,