hyperlinks in conditional tags
-
I’ve created conditional tags for my sidebar so that it only displays certain information for certain pages. That works fine. So, if I follow a:
if (is_page('contact')) {
with
echo "Click Me";
It displays fine. But if instead follow with:
echo "<a href="???">Click Me</a>";
I break my site. What am I doing wrong?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘hyperlinks in conditional tags’ is closed to new replies.