Title: Another subpage question
Last modified: August 18, 2016

---

# Another subpage question

 *  [confused](https://wordpress.org/support/users/confused/)
 * (@confused)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/another-subpage-question/)
 * I created a subpage and am trying to link it to the parent page. This is the 
   code (sorry don’t know the proper term) I used to link to the parent page.
 * < li > < a href = “index.php?page_id=3”>Photos< / a>
    How would I link the subpage?

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

 *  [jonimueller](https://wordpress.org/support/users/jonimueller/)
 * (@jonimueller)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/another-subpage-question/#post-252077)
 * Your URL is wrong. It goes to the WP site. Is that what you meant to do?
 *  Thread Starter [confused](https://wordpress.org/support/users/confused/)
 * (@confused)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/another-subpage-question/#post-252078)
 * Nope. I added spaces so it can be read properly.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/another-subpage-question/#post-252089)
 * You can use the same method: subpages have unique page_id numbers as Pages.
 *  Thread Starter [confused](https://wordpress.org/support/users/confused/)
 * (@confused)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/another-subpage-question/#post-252134)
 * It’s possible I’m asking for something that doesn’t exist. I wanted all my parent
   pages listed in a horizonatal menu across the header, and have the subpages only
   appear when you click or hover over the parent page. Is that possible?
 *  [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * (@viper007bond)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/another-subpage-question/#post-252136)
 * > Nope. I added spaces so it can be read properly.
 * Use backticks to for code:
 * `<li><a href="index.php?page_id=3">Photos</a>`
 * Anyway, yes, that’s possible, but easiest to hard code. While it could be done
   via `wp_list_pages` and some PHP, it’d be a pain.

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

The topic ‘Another subpage question’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 5 replies
 * 4 participants
 * Last reply from: [viper007bond](https://wordpress.org/support/users/viper007bond/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/another-subpage-question/#post-252136)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
