WordPress输出文章摘要标签:the_excerpt

WordPress模板标签the_excerpt用于输出文章的摘要,需要用在The Loop主循环。如果当前文章有填写“摘要”,the_excerpt()函数输出这个摘要内容,否则自 …

WordPress输出RSS文章内容标签:the_content_rss

WordPress模板标签the_content_rss用于输出RSS格式化的文章内容,需要用在The Loop循环里。该函数已经废弃,可能会在未来的WordPress版本中删除,不 …

WordPress输出文章内容标签:the_content

WordPress模板标签the_content用于输出文章内容,需要用在The Loop主循环。 the_content( string $more_link_text = null, bool $strip_teaser = false ) 函数参数$more_link_text 字符串值,默认为空 当使用M …

WordPress文章页输出文章标题标签:single_post_title

WordPress模板标签single_post_title用于输出当前文章的标题,需要用在The Loop主循环里。 single_post_title( string $prefix = '', boolean $display = true ) 函数参数$prefix 字符串值,默认为空 在文 …

WordPress输出当前文章标题标签:the_title_attribute

WordPress模板标签the_title_attribute用于输出当前文章的标题,和the_title()相似,但the_title_attribute()去除了标题中的HT …

WordPress在RSS页面输出文章标题标签:the_title_rss

WordPress模板标签the_title_rss用于RSS页面输出文章标题,一般用在The Loo主循环。 the_title_rss() 使用示例<item> <title><?php the_title_rss(); ?></title> </item> 扩展阅读the_title_r …

WordPress输出当前文章标题标签:the_title

WordPress模板标签the_title用于输出当前文章的标题,需要用在The Loop主循环里。 the_title( string $before = '', string $after = '', boolean $echo = true ) 函数参数$before 字符串值,默认为空 在标题前输出 …

WordPress获取当前文章ID标签:the_ID

WordPress模板标签the_ID用于输出当前文章的ID,需要用在The Loop主循环里。 the_ID() 使用示例: <p>文章ID: <?php the_ID(); ?></p> 扩展阅读the_ID()函数位于:wp- …

WordPress登录表单标签:wp_login_form

前面介绍了一系列用于制作登录表单的函数,事实上如果我们需要WordPress前台输出一个登录表单,只需要WordPress模板标签wp_login_form就够了。 wp_login_form( string|array $args = '' ) 函数 …

WordPress销毁当前用户会话标签:wp_logout

WordPress模板标签wp_logout销毁当前用户会话以及清除相应的cookie。 wp_logout() wp_logout()函数没有参数,事实上wp_logout()函数等效于调用这两个函数: …