WordPress输出RSS文章内容标签:the_content_rss
WordPress模板标签the_content_rss用于输出RSS格式化的文章内容,需要用在The Loop循环里。该函数已经废弃,可能会在未来的WordPress版本中删除,不建议使用。 …
WordPress模板标签the_content_rss用于输出RSS格式化的文章内容,需要用在The Loop循环里。该函数已经废弃,可能会在未来的WordPress版本中删除,不建议使用。 …
WordPress模板标签the_content用于输出文章内容,需要用在The Loop主循环。 the_content( string $more_link_text = null, bool $strip_teaser = false ) 函数参数$more_link_text 字符串值,默认为空 当使用More标签截断内容时,提供一个字符串作为截断后显示的“阅读全文”链接的锚文本。 …
WordPress模板标签single_post_title用于输出当前文章的标题,需要用在The Loop主循环里。 single_post_title( string $prefix = '', boolean $display = true ) 函数参数$prefix 字符串值,默认为空 在文章标题前输出的内容 …
WordPress模板标签the_title_attribute用于输出当前文章的标题,和the_title()相似,但the_title_attribute()去除了标题中的HTML标签。 the_title_attribute( string|array $args = '' ) 函数参数$args数组或字符串 the_title_attribute()函数$args参数默认的值如下: …
WordPress模板标签the_title_rss用于RSS页面输出文章标题,一般用在The Loo主循环。 the_title_rss() 使用示例<item> <title><?php the_title_rss(); ?></title> </item> 扩展阅读the_title_rss()函数位于:wp-includes/feed.php …
WordPress模板标签the_title用于输出当前文章的标题,需要用在The Loop主循环里。 the_title( string $before = '', string $after = '', boolean $echo = true ) 函数参数$before 字符串值,默认为空 在标题前输出的内容 $after 字符串值,默认为空 …
WordPress模板标签the_ID用于输出当前文章的ID,需要用在The Loop主循环里。 the_ID() 使用示例: <p>文章ID: <?php the_ID(); ?></p> 扩展阅读the_ID()函数位于:wp-includes/post-template.php …
前面介绍了一系列用于制作登录表单的函数,事实上如果我们需要WordPress前台输出一个登录表单,只需要WordPress模板标签wp_login_form就够了。 wp_login_form( string|array $args = '' ) 函数参数$args数组或字符串值 …
WordPress模板标签wp_logout销毁当前用户会话以及清除相应的cookie。 wp_logout() wp_logout()函数没有参数,事实上wp_logout()函数等效于调用这两个函数: wp_destroy_current_session(); wp_clear_auth_cookie(); wp_logout()函数使用示例: …
WordPress模板标签wp_signon用于设置记住登录信息,这在开放注册的WordPress站点中经常用到。 wp_signon( array $credentials = array(), boolean $secure_cookie = '' ) 函数参数$credentials 数组,默认为空 该数组定义了需要记住的登录信息,如果该参数为空,默认的值如下: …