[Resolved] Inline PHP vs functions.php
When I put
<?php echo get_the_title($post->post_parent) ?>
into my theme template the output is correct.
However, if I try to put it into a function and then call it from functions.php it does not work. Are there some sort of global variables that I should be calling?
I’m trying to use this with conditional parameters in the functions.php file because the template itself would get quite bloated if I had it inline.
Thanks in advance for any help!
- The topic ‘[Resolved] Inline PHP vs functions.php’ is closed to new replies.