Title: Custom coded menu &#8211; weird linking issue
Last modified: August 22, 2016

---

# Custom coded menu – weird linking issue

 *  [beelzebomb](https://wordpress.org/support/users/beelzebomb/)
 * (@beelzebomb)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/custom-coded-menu-weird-linking-issue/)
 * I’m using a completely custom theme and a coded menu which adds categories into
   the menu thus:
 *     ```
       <li><a href="index.php?cat=8">Tables</a></li>
       <li><a href="index.php?cat=7">Storage</a></li>
       ```
   
 * With a relating page created as ‘category-storage.php’ etc etc.
 * The category title is coded into each of these category pages thus:
 * `<h1>Storage</h1>`
 * But this weirdly only works when I link from the home page each time – if I try
   to link from ‘Tables’ in the menu to ‘Storage’, then the h1 tag remains ‘Tables’
   etc.
 * it seems that – apart from the home page – whatever category link I go to first,
   holds the h1 tag for all subsequent category pages then linked to.
 * Why is this?

Viewing 1 replies (of 1 total)

 *  Thread Starter [beelzebomb](https://wordpress.org/support/users/beelzebomb/)
 * (@beelzebomb)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/custom-coded-menu-weird-linking-issue/#post-5810279)
 * Anyone?

Viewing 1 replies (of 1 total)

The topic ‘Custom coded menu – weird linking issue’ is closed to new replies.

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [custom theme](https://wordpress.org/support/topic-tag/custom-theme/)
 * [links](https://wordpress.org/support/topic-tag/links/)
 * [menu](https://wordpress.org/support/topic-tag/menu/)
 * [pages](https://wordpress.org/support/topic-tag/pages/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [beelzebomb](https://wordpress.org/support/users/beelzebomb/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/custom-coded-menu-weird-linking-issue/#post-5810279)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
