Title: Highlight problems with single post
Last modified: August 19, 2016

---

# Highlight problems with single post

 *  [tobbesanda](https://wordpress.org/support/users/tobbesanda/)
 * (@tobbesanda)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/highlight-problems-with-single-post/)
 * Hi there! I’m trying to highlight my menu but I have a problem when I’m in a 
   single post. If i go to (exampel) “Movie” -category then it works and gets highlighted
   but when I’m in a single post in “Movie” then my link doesn’t get highlighted.
   Here’s my code:
 *     ```
       <li<?php
       if (is_category('movie') || in_category('3') && !is_single())
       {
       echo " id=\"current\"";
       }?>>
       <a href="<?php bloginfo('url') ?>/show/movie">Movie</a>
       ```
   
 * What’s wrong with this? Have patience with my English, I’m Swedish 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [tobbesanda](https://wordpress.org/support/users/tobbesanda/)
 * (@tobbesanda)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/highlight-problems-with-single-post/#post-886558)
 * Anyone?
 *  [anaon](https://wordpress.org/support/users/anaon/)
 * (@anaon)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/highlight-problems-with-single-post/#post-886726)
 * Hi!
 * I wonder exactly the same! I use the same code and it works for the main pages
   but not for the subpages unfortunately, any help would be welcome!
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Highlight problems with single post’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [anaon](https://wordpress.org/support/users/anaon/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/highlight-problems-with-single-post/#post-886726)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
