模板标签-sticky_class()

0条评论

说明

该标签为精华帖文章显示精华帖类。该标签必须在WordPress主循环(loop)中。

用法

<?php sticky_class(); ?> 

参数

该标签无参数。

示例

默认用法

<div class="post<?php sticky_class(); ?>" id="post-<?php the_ID(); ?>">  

精华帖标识符

为精华帖文章提供精华帖类属性。

历史记录

  • 始见于WordPress 2.7.0版本。

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许HTML标签:<a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • 自动断行和分段。

更多关於格式化选项的信息

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.