Forums

Previous Parent Page? (3 posts)

  1. foochuck
    Member
    Posted 1 year ago #

    I've created a custom menu in my wordpress website that detects what the current page's parent page is and from there it determines which menu shows up on the page.

    The challenge of this is that when you go to the blog articles on my site there is no parent page, so my menu system is thrown off.

    Is there any way to determine the previous page's parent page?

    Here's an example:

    http://mysite.com/parent-page/about-us (Uses the menu for 'parent-page')

    http://mysite.com/blog/ (Has no parent page and menu system is thrown off)

    Any suggestions? Perhaps I can base my menus on something besides the parent page, but I'm not sure what...

    -foo

  2. Root
    Member
    Posted 1 year ago #

    Got be a "parent" cat surely ?

  3. foochuck
    Member
    Posted 1 year ago #

    Yes...there are two main page categories on my site. Each one of the two categories determines whether menu 1 or menu 2 will be shown on the page.

Topic Closed

This topic has been closed to new replies.

About this Topic