折叠<div id="main">. 我希望你有<article> 标记以下id和类属性
<article id="post-212" class="post-212 post type-post status-publish format-video has-post-thumbnail hentry category-resources post_format-post-format-video active">
在class属性中,可以找到post类型
type-post, 所以你可以为
post.type-post 如果您使用过
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> 例如,在自定义帖子类型模板中,自定义帖子类型名称为article,那么您有一个名为
type-article 在的class属性内
<article> 标签
您还可以通过以下方式添加自己的类<article id="post-<?php the_ID(); ?>" <?php post_class(\'my-custom-post-type-name\'); ?>>