I've split my functions.php into multiple files using require_once, which works perfectly. However when I add admin functionality (extra panels) in one of the included files, it doesn't work? It's making me put the code in functions.php which I don't want to do.
This is the top of my functions.php
<?php
error_reporting(E_ALL);
ini_set('display_errors', True);
// Includes
require_once('includes/admin.php'); // Admin stuff
if ( is_admin() ). If you're asking the oposite, then your're denying access.if(is_admin())but no luck.if ( is_admin() )then the following stuff only triggers if you're on an admin page. So you maybe have something wrapped into such a statement (or the! is_admin()opposite) and therefore your files aren't loading.require_once('includes/admin.php');at the top of my functions.php :)DEBUGstuff including all php error stuff.