Question Simple dummy PHP function help

Discussion in 'General WordPress Discussions' started by Wilhelm Wanecek, Dec 25, 2011.

  1. Wilhelm Wanecek New Member

    Here's my simple question:
    How would i do a require_once with the bloginfo('template_directory') in it?
    like this:
    require_once("'.get_bloginfo('template_directory').'lib/my-theme-settings.php"); (This won't work, and i have no idea why.)

    //Will
  2. Kevin Muldoon WordPress Fanatic!

    You should add this to your template instead:

    PHP:
    <?php include("theme-settings.php"); ?>

Share This Page