开发者

Error when Adding Wordpress to Smarty Engine

开发者 https://www.devze.com 2023-02-10 06:06 出处:网络
I keep getting this error when I try to add wp-blog-header into my smarty template does anyone know how to fix this?

I keep getting this error when I try to add wp-blog-header into my smarty template does anyone know how to fix this?

Here is the code im using.

<?php 
define('WP_USE_THEMES', false);
require('/home/gorilla/public_html/wp-blog-header.php'); 
?>
<?php get_header(); ?>

And here is the error.

Fatal error: Cannot redeclare wptexturize() (previousl开发者_Go百科y declared in /home/gorilla/public_html/community/common/formatting.php:2) in /home/gorilla/public_html/wp-includes/formatting.php on line 99


Did you write your own wptexturize function om common/formatting.php? That this could be the issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消