Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Been searching a lot for how to call a function in header.php where the function is in functions.php.

How do I solve this?

I have my function in functions.php like this:

function testFunction()
{
echo "This is a test";
}
share|improve this question

closed as off topic by kaiser, brasofilo, s_ha_dum, toscho Mar 19 '13 at 14:48

Questions on WordPress Development Stack Exchange are expected to relate to WordPress within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
you just call it in your header.php like that: <?php testFunction();?>. That's all –  RRikesh Mar 19 '13 at 9:24
    
This looks like a pure PHP question to me. –  s_ha_dum Mar 19 '13 at 13:30

1 Answer 1

up vote 0 down vote accepted

Simple! just call it testFunction(); wherever you want between php tags.

But not a wp question

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.