WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
require_once 'wordpress/wp-load.php';

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

Your Answer


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.