how to display text from functions.php
-
Hi,
I just wrote my first theme function, which is supposed to
insert text into sidebar. It works fine from command line,
but WP displays its text, instead of regular page.e.g.
function foo() { echo 'foo'; }
then<li><?php foo(); ?>
But all I see is ‘foo’ – not the rest of the page.
I have done this dozens of times with CGI and Javascript,
what do I have to differently to get it to work with PHP/WP ?Thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘how to display text from functions.php’ is closed to new replies.