Combining Conditional Tag/PHP problem
-
I currently have the list of my four recent posts displayed inside my post, but I only want to show it on the post (single) page. I tried adding a conditional single tag, but I keep getting a parse error. How can I combine the two php tags:
Here is the code I want displayed:
<center><b>Latest News:<i>
<?php get_archives('postbypost',"4",1,"","",""); ?></b></center></i>I tried this and I got a parse error:
<?php
if (is_single()) { echo '
<center><b>Latest News:<i>
<?php get_archives('postbypost',"4",1,"","",""); ?></b></center></i>
';} ?>Thanks!
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Combining Conditional Tag/PHP problem’ is closed to new replies.