Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Problem with Smarty
Hey guys,
i just wanna include Wordpress header in smarty, so i tried many things, nothing worked.
Why does this not work? (I just shows nothing and no error message/log)
{include_php file="../wp-content/themes/MyTheme/header.php"}
/EDIT:
and why do the {php} tags not work? For example:
{php}die("test");{/php}
does nothing.
i just wanna include Wordpress header in smarty, so i tried many things, nothing worked.
Why does this not work? (I just shows nothing and no error message/log)
{include_php file="../wp-content/themes/MyTheme/header.php"}
/EDIT:
and why do the {php} tags not work? For example:
{php}die("test");{/php}
does nothing.
0
Comments
Instead of using smarty template (default.master.tpl) use plain old php file (default.master.php) copy one from the existing views into your theme folder