常用函数-get_the_content()

0条评论

常用函数-get_the_content()

说明

检索文章内容。

用法

<?php get_the_content( $more_link_text, $stripteaser, $more_file ) ?>

参数

$more_link_text

(字符)(可选)显示更多内容

默认值: null

$stripteaser

(字符)(可选)在更多内容前显示内容摘要

默认值:0

$more_file

(字符)(可选)不使用

默认值:''

返回的值

(字符)

示例

注释

修改记录

自0.71版本后

源文件

get_the_content() 位于 wp-includes/post-template.php中。

相关资源

发表新评论

此内容将保密,不会被其他人看见。
  • 自动将网址与电子邮件地址转变为链接。
  • 允许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.