WordPress.org

Forums

Another subpage question (6 posts)

  1. confused
    Member
    Posted 10 years ago #

    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?

  2. Joni
    Member
    Posted 10 years ago #

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

  3. confused
    Member
    Posted 10 years ago #

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

  4. moshu
    Member
    Posted 10 years ago #

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

  5. confused
    Member
    Posted 10 years ago #

    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?

  6. Alex Mills (Viper007Bond)
    Moderator
    Posted 10 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.