首页    >    中文手册    >   常用函数-get_the_content()

常用函数-get_the_content()

常用函数-get_the_content()

说明

检索文章内容。

用法

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

参数

$more_link_text

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

默认值: null

$stripteaser

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

默认值:0

$more_file

(字符)(可选)不使用

默认值:”

返回的值

(字符)

示例

注释

  • 用法: post_password_required()
    用法: post_password_required()出错时使用 get_the_password_form()
    用法:处理标签时使用 wp_kses_no_null()
    用法:balanceTags()
    用法:get_permalink()
    全局用法:$id
    全局用法:$post
    全局用法:$more
    全局用法:$page
    全局用法:$pages
    全局用法:$multipage
    全局用法:$preview
    全局用法:$pagenow

修改记录

自0.71版本后

源文件

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

相关资源

分类:中文手册

* 版权声明:作者WordPress啦! 转载请注明出处。