Title: Conditional Archives Tag
Last modified: August 19, 2016

---

# Conditional Archives Tag

 *  [thisisedie](https://wordpress.org/support/users/thisisedie/)
 * (@thisisedie)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/conditional-archives-tag/)
 * I’m pretty sure I ran across this somewhere once but I can’t find it now. Sigh.
   I’m using conditional tags so that when you click on the archives link on my 
   site a little arrow appears below it so you know where you are. If you then click
   on months, categories, etc, the arrow disappears. I’d like the arrow to stay 
   as long as any archives are being browsed. Any insight into how to make this 
   happen would be appreciated 🙂

Viewing 1 replies (of 1 total)

 *  Thread Starter [thisisedie](https://wordpress.org/support/users/thisisedie/)
 * (@thisisedie)
 * [17 years, 1 month ago](https://wordpress.org/support/topic/conditional-archives-tag/#post-1027427)
 * This is what I’m using:
 * `<a<?php if (is_page('Archives')) { echo " id=\"archivescurrent\""; }?> href="
   <?php bloginfo('url') ?>/archives/" class="archives">&nbsp;</a>`
 * I figured out that if I use is_archive it does what I want but doesn’t show the
   arrow on the actual archive page. Is there some kind “and if” statement I can
   use? I’ve tried everything and can’t make it work. Heh, I know it’s right there
   but can’t wrap my brain around it.

Viewing 1 replies (of 1 total)

The topic ‘Conditional Archives Tag’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [thisisedie](https://wordpress.org/support/users/thisisedie/)
 * Last activity: [17 years, 1 month ago](https://wordpress.org/support/topic/conditional-archives-tag/#post-1027427)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
