gpt4 book ai didi

PHP/WordPress : Storing post content into variable?

转载 作者:可可西里 更新时间:2023-11-01 00:03:26 24 4
gpt4 key购买 nike

当使用 the_post() 循环时,如何获取发布数据?我无法使用 the_content() 检索帖子内容数据,因为它会自动“打印”屏幕上的内容。

我需要将它存储在一个值中以便我可以对其进行操作,我只需要显示标题内容的一小部分。

最佳答案

使用get_the_content()获取帖子的内容

关于PHP/WordPress : Storing post content into variable?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9998290/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com