Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

So I'm using Wordpress in a 'themeless' manner, i.e. not using a "blog" template. My site files are in the root directory (not in the theme folder), and Wordpress is installed in its own /wordpress/ directory. The only thing my theme exists for is customization of the back-end, including re-branding and custom post types. (I'm basically avoiding plug-ins and widgets and doing a bespoke implementation of Wordpress)

With this set-up, is there a way I can get the admin bar to display when my clients view the front-end pages like it normally does?

NOTE: I've tried adding wp_head() and wp_footer() to no avail. I think this might have something to do with my custom file structure.

share|improve this question
add comment

1 Answer 1

require_once 'wordpress/wp-load.php';
wp_footer();

Maybe you have to remove some things from the footer-file (e.g. Powered By WordPress). With var_dump( $wp_actions ); you can see which actions was executed (a list of action hooks). And with var_dump( $wp_filter['wp_footer'] ); you can see which actions are registred for the specific hook (here wp_footer).

share|improve this answer
    
Hey thanx for the answer! The thing is though I've done this and I still get no admin bar. I've added wp_footer at many different points of my script and I get absolutely no render at all. Mind you, I'm in the top-level directory and not in the THEME directory. –  Spartacus May 3 '13 at 14:19
    
I tested it in the opposit way. WordPress in the root, the file with adminbar in a subfolder. This works great. I think it is a path problem. Wp setup ABSPATH to yourdomain.tld/wordpress/ and it seems, that everything below this path (yourdomain.tld/) does not exists for WP. I try something different, maybe it works for you. –  Ralf912 May 3 '13 at 15:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.