I followed the API to create my own templates and I have a question about including custom variables.
So, the last line of the my custom page calling the template is:
PHP Code:
$featuredcontent = include('featuredcontent.php');
eval('print_output("' . fetch_template('featurecontent') . '");');
//featuredcontent is my custom template name which has the variable $featuredcontent
The external page (featuredcontent.php) just gets info from other sources and I want to include it on a custom template, however, it always places it above my custom template, not where I specified the variable in the template.
Any ideas?