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
- 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
- Can you have different menus and theme on a per-page basis?
- 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
- Change menu items URL
- Making WordPress’ page and menus visible only for logged in users, checking session variables
- 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
- 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]
- 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 add a page to header that is outside of WordPress?
- Submenu in sidebar custom page template
- 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
- 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
- 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?
- 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
- Check if page has subpages
- horizontal menu / 4-level depth
- 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?
- Unable to remove page from primary menu
- How to sort a sub-menu, generated with get_pages(), by the page order instead of alphabetically?
- How to add class and span to
- Specific Page that convert Hyperlink to anchor in nav menu
- WordPress – Apperance > Menu
- How to display list of child pages with parent in wordpress?
- Creating and populating custom nav menu (menu-item-position not working)
- How to use page metadata while using wp_list_pages()?
- How to make a page to not appear in the menu when created?
- Display all submenus
- Two pages named the same thing, on a different level but conflicting url paths in menus and direct links
- Second tier sidebar navigation
- Site with all content on the front page
- Adding Pages to Menus – No Page Hierarchy in Backend [duplicate]
- Some informations about the use of statics pages in WordPress
- my theme automatically adds new pages to menu
- How does WP knows which template to use for a page
- Problems with draft website pages
- Add a page to a subscribers account
- Control page access based on User Meta data?