Hey All! Am trying to work on a Wordpress theme and am having some problems with the functions.php file. Im making a lot of back end options in the theme, and now the functions.php is over 2000 lines and im about half way though. This is obviously far too big a file and its melting my eyes trying to edit it! So I thought I could use php include to split the file into several different ones then call them all from the main functions.php All good in theory! I have a problem, when i try to use a PHP include call, I either get the white screen of Wordpress death, or it just echos the arrays as text into the top of the options page (rather than them actually being options) Below is a condensed version of my functions.php (ive only cut out arrays, all the same) <?php $themename = "blog"; $shortname = "bb"; $options = array ( array( "type" => "submit"), array( "name" => "Header Options", "type" => "title"), "desc" => "These options are for site wide changes.<br/>Input a 6-digit HEX value, excluding the '#' sign.", array( "type" => "open", "$monkey"=> "porn"), array( "name" => "Header Width", "desc" => "Width for the central header. In px", "id" => $shortname."_header_middle_width", "std" => "1000", "type" => "text-left"), array( "name" => "Header Height", "desc" => "Width for the central header. In px", "id" => $shortname."_header_middle_height", "std" => "60", "type" => "text-right"), array( "type" => "close") ); ?> Code (markup): And then the file im trying to pull in has the same array lay out and looks like this (again condensed) <?php array( "name" => "FOOTER LIssssNK Options", "type" => "title"), "desc" => "Menu options.", array( "type" => "open"), array( "name" => "FOOTER LINK ONE STUFF Options", "type" => "subtitle"), array( "name" => "Footer Linke One Address", "desc" => "http://www.something.com", "id" => $shortname."_footer_link_address_one", "std" => "http://www.bbc.co.uk", "type" => "text-left"), ?> Code (markup): Could someone help me import these files together? anyone who can help would be very very VERY appreciated. Thank you!
functions.php is just the file name that worpdress uses, its just a normal PHP file, its just the echo problem im having problems with.Thanks!