How integrate wordpress header in smf forum
-
I want integrate the wordpress header in smf template but when I include the wordpress header with the code: [ require(‘../wp-blog-header.php’); ], in the index.template.php file, I got this error message:
Fatal error: Call to a member function on a non-object in /japgalaxy/wp-includes/functions.php on line 897
This is the portion of code of functions.php file:
895 function is_blog_installed() { 896 global $wpdb; 897 $wpdb->hide_errors(); 898 $installed = $wpdb->get_var("SELECT option_value FROM $wpdb->options WHERE option_name = 'siteurl'"); 899 $wpdb->show_errors(); 900 $install_status = !empty( $installed ) ? TRUE : FALSE; 901 return $install_status; 902 }
Where is the problem?
P.s.: excuse me for my bad english but I’m italian.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How integrate wordpress header in smf forum’ is closed to new replies.