the_title(); if( is_sticky() ) echo ' <span style="color:red;">置顶</span>';
if( !is_sticky() ) the_content(....);
if( !is_sticky() ) the_excerpt(....);
<p <?php post_class(); ?> class="post">
.sticky {
background: #ff0000;
border: 1px solid #ccc;
}
以上就是安达网络工作室关于《wordpress如何设置文章置顶以及区分置顶文章与普通文章》的一些看法。更多内容请查看本栏目更多内容!
根本模板文件 style.css : CSS(款式表)文件index.php : 主页模板archive.php : Archive/Category模板404.ph...
作者 查问和某些作者(用户)无关的文章,能够应用 4 个参数: author(整数):用户 ID author_name(...
自定义 WordPress 默许评论头像 关于没有设置Gravatra头像的评论者来说,WordPress会显示一个你在后盾设置的...
这篇文章重点引见10个重要的WordPress平安插件和技巧,用来维护WordPress网站或许博客。1. WP Security人工...
Wordpress以其开源易用的特点以及宏大的格调插件数据库支持,曾经成了以后最盛行的博客零碎!而博客又以其良...
1.空间的抉择 wordpress要求 php+mysql的支持,rewrite性能,比方apache的mod-rewrite或iis rewrite。 空间...