Results 1 to 1 of 1

Thread: Can't Call New Function File

  1. #1
    Community Partner scarstens's Avatar
    Join Date
    Apr 2010
    Location
    Cave Creek, AZ USA
    Posts
    912
    Thanks
    2
    Thanked 129 Times in 86 Posts

    Unhappy Can't Call New Function File

    I've tried everything I could think of but for some reason I cannot pull another functions file into the functions.php properly.

    I'm not sure what the deal is, but the way the includes are working, the new functions file does now actually "place code" in the functions.php file, instead it seems to start PHP code outside the wordpress loop.

    Code:
    /**
     * add any of your custom functions below this section
     */
    
    require_once (get_bloginfo('stylesheet_directory') . '/my-functions.php');
    I've built a child theme and I'm trying to form some sort of way to move all my custom function into the child theme folder and OUT OF the functions.php file which gets overwritten on upgrades. Users, moderators, or David... anyone care to clue me in on this one?
    ~ Seth Carstens, Sethmatics Inc.


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to Activate Stats Function?
    By thewebsiteman in forum ClassiPress General Discussion
    Replies: 1
    Last Post: July 1st, 2009, 10:02 PM
  2. Language file?
    By clayminkyu in forum ClassiPress General Discussion
    Replies: 5
    Last Post: May 14th, 2009, 01:03 AM