Support » Installing WordPress » 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)
  • Joni

    (@jonimueller)

    Your URL is wrong. It goes to the WP site. Is that what you meant to do?

    Nope. I added spaces so it can be read properly.

    You can use the same method: subpages have unique page_id numbers as Pages.

    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?

    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.