Just copy and paste the contents of one into the other, minus the <?php … ?> tags.
You can have as many functions in the functions.php as you want, as long as the entire file is inside <?php…?> tags and there is *nothing* outside those.
functions.php is absolutely not allowed to produce any actual output by itself. It must contain only functions and hooks and such.
Thread Starter
theApe
(@theape)
Thanks! but they don’t seem to like each other and give me errors.
I’m going to take a closer look at http://codex.wordpress.org/Writing_a_Plugin
This is the error if your interested, it’s always lists the last line and I can’t figure out why.
Parse error: syntax error, unexpected $end in /home/sites/sitename.com/public_html/wp-content/themes/default/functions.php on line 1113
That error is usually the result of a missing curly bracket, meaning that your function was still open when you ended the file. Meaning that your code was probably broken in the first place.
I cannot tell you specifically where to look to fix your code, but that’s the most likely problem.
Thread Starter
theApe
(@theape)
Thanks! I think I’ll have to track back.
By the way how easy would it be to turn a functions.php into a plugin.
Thread Starter
theApe
(@theape)
Perfect I gave it the plugin intro uploaded and activated it. Now I have all the functions working together with no conflicts. 🙂
Thanks Otto I really appreciate everytime you’ve helped my in the last yeear or so.