Use a custom named php file in a Wordpress theme -
i'm building wordpress theme someone, based on older modified theme, , using ajax scripting flash based "holders" ad areas. i'm trying use custom name phps add image widgets them.
so basically, trying use <?php get_ad('variantnamehere'); ?>
, ad-customname.php theme files.
i assume have register files within functions.php, have no idea how that.
is there way that?
in theme's functions.php add following:
require_once( dirname(__file__) . '/ad-customname.php' );
Comments
Post a Comment