Title: Previous Parent Page?
Last modified: August 19, 2016

---

# Previous Parent Page?

 *  [foochuck](https://wordpress.org/support/users/foochuck/)
 * (@foochuck)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/previous-parent-page/)
 * 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](http://mysite.com/parent-page/about-us)(
   Uses the menu for ‘parent-page’)
 * [http://mysite.com/blog/](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

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

 *  [Root](https://wordpress.org/support/users/root/)
 * (@root)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/previous-parent-page/#post-1816727)
 * Got be a “parent” cat surely ?
 *  Thread Starter [foochuck](https://wordpress.org/support/users/foochuck/)
 * (@foochuck)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/previous-parent-page/#post-1816729)
 * 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.

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

The topic ‘Previous Parent Page?’ is closed to new replies.

## Tags

 * [parent page](https://wordpress.org/support/topic-tag/parent-page/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [foochuck](https://wordpress.org/support/users/foochuck/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/previous-parent-page/#post-1816729)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
