Wordpress 查找数据的来源;“U内容()”;功能
这可能是一个普通的问题,虽然我被困在里面了。我对wordpress不熟悉。我买了一个wordpress主题,我正在尝试编辑一些我想要的页面。现在我想编辑默认的post页面,在这里我已经开始编辑“single.php”和“post format.php”文件。我想知道“the_content()”函数从何处或如何获取数据 因为我想删除页面的一些html部分,尽管html部分是通过“the_content”函数实现的。因此,如果不去掉“theu content”函数,我就无法删除该部分。但是我不能去掉“theu content”函数,因为同一个函数也调用了一些重要的部分Wordpress 查找数据的来源;“U内容()”;功能,wordpress,wordpress-theming,custom-wordpress-pages,Wordpress,Wordpress Theming,Custom Wordpress Pages,这可能是一个普通的问题,虽然我被困在里面了。我对wordpress不熟悉。我买了一个wordpress主题,我正在尝试编辑一些我想要的页面。现在我想编辑默认的post页面,在这里我已经开始编辑“single.php”和“post format.php”文件。我想知道“the_content()”函数从何处或如何获取数据 因为我想删除页面的一些html部分,尽管html部分是通过“the_content”函数实现的。因此,如果不去掉“theu content”函数,我就无法删除该部分。但是我不能去
希望你们能帮忙 从何处开始
获取内容()
从数据库中检索帖子内容(通常在循环中使用),并在前端打印内容()
作为过滤器控制如何显示帖子内容- post_密码_必需()
- 如果post\u password\u required()失败,则获取\u password\u form()
- wp_kses_no_null()处理标记时
- 余额标签()
- get_permalink()
- 全局:$id、$post、$more、$page、$pagesm、$multipage、$preview、$pagenow
wp-includes/plugin.php: apply_filters()
wp-includes/post-template.php: get_the_content()
wp-includes/post-template.php: the_content