I think you may be making this more complicated than it needs to be.
- Use custom meta fields to associate the different pages. You could
use the built in “Custom Fields” meta box or build your own meta box
for this “association” field. Populating your sidebar is then a
matter of ameta_query
. - Use tags to associate related posts. Populating your sidebar is a
matter of atax_query
.
Whichever you use, you would only need one sidebar widget to pull the related posts.
Related Posts:
- List children of second level sub page
- Different side menu on each page
- wp_list_pages sort order is different for different languages [closed]
- wp_list_pages: only show subpages on the parent page?
- wp_list_pages() but only show children on the branch you are on
- Dynamic menu wp_list_pages displaying only current branch including: current page, his siblings and its childs
- wp_list_pages Hierarchical Help
- wp_nav_menu: show menu only if one exists, otherwise show nothing
- Add child pages automatically to nav menu
- Show just one level of child pages, wp_list_pages woe
- Automatically remove trashed pages from nav menu
- Directing a page to a default subpage
- Can you have different menus and theme on a per-page basis?
- Ways to give a wp_list_pages menu link specific class names?
- How to make pages metabox display all hierarchy in menu admin?
- How to get current page menu item name instead of full menu item list
- Hide pages depending on role
- Get parent page/menu id of current post
- wp_list_pages – show pages immediately 1 level below current level
- Change menu items URL
- Making WordPress’ page and menus visible only for logged in users, checking session variables
- Add sidebars to navigation menu?
- Handling complex multi-level architecture / menu for large site
- Sub-Pages only of menu items in current branch using a custom menu
- No link on empty page in wp_list_pages
- WordPress – site with 2 stylesheets and more…
- Remove Page Name From WordPress Menu
- Hiding Menu From Specific Pages
- Change HTML structure for custom menu in sidebar
- Getting post content within wp_nav_walker
- Vertical Sidebar Menu Parent and Child not displaying correctly [closed]
- list pages only from master parent
- How to have custom menu Item CSS Classes for wp_page_menu() or wp_list_pages()
- Auto add pages to primary menu with functions.php
- Does loading of sub pages in menu cause load to the server?
- WordPress menu permalink redirects to wrong page
- Highlight another nav item
- Link to Homepage in Menu
- Schedule Page to Menu [duplicate]
- Add class active to static menu
- display menus on all page except one?
- Check if Page Already Exists in Menu
- How to handle many different menus?
- Programmatically add existing pages and subpages to Appearance Menu
- How to retrieve parent menu item name of current submenu item
- two different separate sections on the same site
- When clicking on menu item not going to specific page
- Ad custom admin page like WordPress customizer [closed]
- How to show dynamic side bar on menu item [closed]
- How to remove the HOME menu item
- Create custom page and add it in nav menu by code
- Dynamic_sidebar inside wp_nav_menu
- Does is_child() exist in wp 3.5.1?
- wp_list_pages sort order by custom nav menu order
- How to highlight 1st level menu item based on actual page
- How can I switch pages?
- Prevent menu from loading in a page template [duplicate]
- How to create a menu item which is not a page
- How can I make a menu link visible only to admins (without plugins)?
- How to add a page to header that is outside of WordPress?
- Submenu in sidebar custom page template
- How to Structure Pages and Subpages
- Highlighting top level link when viewing one of it’s sub-pages, which are not linked in the menu
- Three menus – parent / child / sibling
- Add (grand)child pages automatically to nav menu
- how avoid the link of the current post in the menu in the sidebar?
- Disable parent in wp_list_pages – WordPress
- Page appears after de registering from menu
- Get parents child pages
- How can I list the current pages siblings and any ancestor page siblings?
- wp_nav_menu without menu or theme_location specified
- I can’t add more pages to menu – menu delete pages
- Parent Page > Child Page Menu
- Making pages in a menu appear conditionally
- Add pages content to startpage through custom menu
- add_menu_page does not render the expected result
- Wp_list_pages not showing children with custom page template
- Simple form to add custom links to menu?
- How to use wp_list_pages on a grandparent page
- Main menu navigation links and new pages
- Page header menu links change
- Can you exclude child pages of a specific parent within a navigation?
- Catagorized hierarchy menu for PAGES!
- How to create menu spread over four lines including images
- How to show pages in menu without link
- Check if page has subpages
- Parent/Child pages
- horizontal menu / 4-level depth
- Add a menu metabox to post edit page
- Setting or plugin for showing submenus horizontally under the main menu, and keep them after selection
- Page dependent sub-menu?
- Add prefix to url, but products not showing in page SHOP
- adding pages in underscores.me theme
- How to get the Page Name of the current page?
- Add CSS Class to WordPress Menu Item Dependent on the Page the User is Visiting
- How can I order these pages in this navigation bar on this old wordpress theme?
- Adding widget to sidebar which contains current page’s submenu
- Creating navigation out of specific IDs and their children?
- WP pages content is missing in frontend
- Unable to remove page from primary menu