• Hi

    I have looked at many webpages trying to figure out a way to do this. Can I make a function (in functions.php) that I can include rightside.php (that is in my theme directory) into my template?

    So in my Main Index Template template file I can go <?php get_rightside(); ?>

    Cheers

Viewing 1 replies (of 1 total)
  • You don’t need to add the function, you can simply do an include.

    <?php include('rightside.php'); ?> or <?php include (TEMPLATEPATH . '/rightside.php'); ?>
    Either way will work.

Viewing 1 replies (of 1 total)
  • The topic ‘Include a theme file function’ is closed to new replies.