PHP nesting problem
-
I hope this is the right section. I’m trying to do
<?php if(is_page()); { <h1><?php the_title(); ?></h1> } else { <h1>Text HERE</h1> }But it keeps giving me an “unexpected < at…” error. What am I doing wrong?
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘PHP nesting problem’ is closed to new replies.