question about the conditional tag: if (is_attachment)
-
If someone could help me out here I’d really appreciate it. I’m at the last hurdle of making my site work.
I want to call a specific sidebar.php file on the attachment page of images from posts from specific categories. If that makes sense.
In other words, I want francesidebar.php to load when someone clicks on an image within a post which is in the france category.
I assumed this would work but it doesn’t.
<?php if (is_attachment ('category=10') ){ ?> <?php include('francesidebar.php'); ?> <?php } ?>
thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘question about the conditional tag: if (is_attachment)’ is closed to new replies.