当我在同一目录中的其他 php 脚本上显示我的 wordpress 网站 post

when i display my wordpress website post on other php script which resides in the same directory

它没有显示它,当启用 ERROR REPORTING 来检查问题时它向我显示致命错误:无法重新声明 clean_url()(之前在 /home/a107853262/public_html/TECHNICALLY-SPEAKING.ORG/small-seo-tools/core/functions.php:237) 在第 2039 行 /home/a107853262/public_html/TECHNICALLY-SPEAKING.ORG/wp-includes/deprecated.php 中。提前致谢

您正在尝试重新声明函数 clean_url()。

参考这个answer

此外 clean_url() 已弃用,应由 esc_url() 代替。 WordPress Code Reference