我使用了很多功能:
get_search_query()
Run Code Online (Sandbox Code Playgroud)
获取搜索返回的值,并能够修改和使用字符串.
我需要知道一个函数来获取<?php the_content(); ?>字符串或如何将该函数返回到字符串中.
内容只是一个带有段落标签的简单单词,但是使用该功能我也得到了标签,我想得到文本,所以我可以将它添加到超链接.
我认为你正在寻找get_the_content(),这是有据可查的:http://codex.wordpress.org/Function_Reference/the_content
小智 5
如果您需要将其存储在具有 html 格式的变量中,请执行以下操作
apply_filters('the_content',$post->post_content)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
30373 次 |
| 最近记录: |