【发布时间】:2012-06-01 20:39:31
【问题描述】:
我是 php 菜鸟 尝试为 wordpress 使用一个名为特色项目滑块的插件
-当我使用 shortcode 将其放置到页面或发布它工作正常。 -问题是当我尝试通过 php include 将其放置到我的模板中时,我收到此错误
(致命错误:无法在 /home/infostar 中重新声明 features_options_page()(之前在 /home/infostar/public_html/wp-content/plugins/featured-item-slider/featured-item-slider.php:36 中声明) /public_html/wp-content/plugins/featured-item-slider/featured-item-slider.php(第 37 行)
到目前为止我已经尝试过了 include_once 当我使用它时,我没有收到任何错误但没有显示 require_once 再次没有错误,但我的插件没有显示 get_included_files 仍然没有错误,但没有显示
我认为可能不会多次包含文件functions.php,因为当我使用简码调用它时它工作正常
有专家可以帮我吗???
【问题讨论】:
标签: php wordpress plugins fatal-error