从摘录功能中排除pdf按钮文本:
$post_type='post';
//获取此帖子类型的所有分类
$taxonomies=get_object_taxonomies(数组('post_type'=>$post_type));
foreach($taxonomies作为$taxon):
//获取此分类法中的每个“类别”(术语)以获取相应的帖子
$terms=get_terms($taxonomy);
foreach($terms作为$term):?>
<h2 class=“entry-title”><?php echo$term->name;?></h2>
<?php(电话)
$args=阵列(
'post_type'=>$post_type,
“posts_per_page”=>-1,//显示所有帖子
“tax_query”=>数组(
阵列(
“taxonomy”=>$taxonomy,
“字段”=>“slug”,
“terms”=>$term->slug,
“猫”=>“-3”
)
)
);
$posts=新WP_Query($args);
if($posts->have_posts()):while($posts->have_posts()):$posts->the_post();?>
<article id=“prodotti”>文章id=“prodotti”>
<?php if(has_post_thumbnail()){?>
“title=”<?php echo get_the_title();?>“>
<?php the_post_thumbnail('archive-custom-size',数组('class'=>'aligncenter'));?>
<?php}
/*没有帖子图像,因此显示默认值*/
其他{?>
/assets/img/default-img.png“alt=”<?php echo get_the_title();?>“title=“<?php echo get_the_title();?>“width=“110”height=“110”/>
<?php}?>
<h3>“title=”<?php echo get_the_title();?>“><?php echo get_the_title();?></h3>
<?php the_exercert();?>
</文章><!–关于-box–>
<?php endwhile;endif;?>结束
<?php endforeach;
每个端点;?>