Adding Wordpress Header to Vanilla

netigatenetigate New
edited February 2013 in Vanilla 2.0 - 2.8

Hi,

i need to display the wordpress admin bar, when users are logged in and need to integrate the wordpress header into vanilla. i already tried to add the following to my themes default.master.php in the header, but just get errors. do you guys know more or have ideas?

require_once('/var/www/html/community/wp-load.php');
require_once('/var/www/html/community/wp-blog-header.php');
require_once('/var/www/html/community/wp-includes/admin-bar.php');
require_once('/var/www/html/community/wp-config.php');

wp_enqueue_script( 'admin-bar' );
wp_enqueue_style( 'admin-bar' );
_wp_admin_bar_init();

show_admin_bar(true);
wp_admin_bar_render();
Sign In or Register to comment.