Hey guys probably a newby question. I have a simple php if like this: <?php if (is_front_page()) { But the stuff I want to execute here is more php code, which confuses me should I do an Echo for each line of php code or something else? } ?> Thank you so much!
i'm such a newb! I just put it inside a big if block <?php if (is_front_page()): ?> DO STUFF HERE <?php endif; ?>
btw, you don't have to use the alternate IF syntax. you can do this: <? if (is_front_page()) { ?> do stuff <? } ?>
I realize this is an old (1 day) thread, but to execute more PHP: if($EXPRESSION) { // CODE HERE } PHP: Do not close the PHP tags: <? if (is_front_page()) { ?> do stuff <? } ?> PHP: