Help needed with php within php code
-
Hi folks,
Im trying to write some code that contains php within php. Whatever i do seems to result in an error so can anyone help. basically it is a conditional statement that asks wordpress if this is a certain category then to echo something.
<h1> <?php if ( is_category('new-this-week') ) { echo 'New This Week'; } elseif ( is_category('new-this-month') ) { echo '<?php the_time('F, Y') ?>'; } else { } ?> </h1>
Thanks to anyone that can help
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Help needed with php within php code’ is closed to new replies.