There’s a couple ways to do this. One way might be to create a file on your web server, load up WP (so you can use its functions) and have it spit out the menu you want at a certain URL, like:
http://site/nav.php
In that file you’d do something like:
<?php
include( './wp-load.php' ); // load up WordPress
wp_nav_menu( array ( 'menu' => 'whatever' ); // spit out a menu called 'menu'
?>
Then on the other site, you’ll want to get the output of that file like:
<?php echo file_get_contents('http://site/nav.php') ?>
That’ll spit out the menu where you need it on the second site.
To get it to look right, you’d also have to bring some markup and styles from the other site but that’s the gist of it.
Related Posts:
- Display a portion/ branch of the menu tree using wp_nav_menu()
- Add custom menu item using wp_nav_menu_items filter
- how to create a menu with all sub categories?
- Add separator to admin submenu
- Display only page specific sub menu items using Custom Walker
- Add a .last class to the last in each ul.sub-menu
- Multi Level Bootstrap Navigation Menu in WordPress
- How show sub menu only using wp_nav_menu()
- Show only 2nd level of navigation depending on active navigation
- Simple Navigation Walker – Wrapper-class around first sub-menu
- wp_nav_menu() loses ‘current-menu-*’ classes on single product page within category
- How to make pages metabox display all hierarchy in menu admin?
- Add items to a menu dynamically
- How can I add a sub menu to an existing navigation menu in WordPress?
- Custom Nav Walker sub-menu HTML construct
- Add div to specific sub-menu
- Automatically Add New Tags to Sub-menu
- Adding different classes to anchor in navigation menu
- how to automatically generate hierarchical menus from hierarchy of pages?
- Custom Walker for Walker_Nav_Menu
- Arrow down in menu not displaying
- Handling complex multi-level architecture / menu for large site
- Update Nav Menu Items Programmatically
- How to display dynamic content in start_lvl function
- Menus like a CMS
- next_post_link() on custom menu structure
- How to add a submenu toggle button inside all “li” elements that have a submenu?
- Does loading of sub pages in menu cause load to the server?
- Show menu based on parent & ancestor
- How to include a third level with wp_get_nav_menu_items function
- wp_nav_menu() with multiple Class
- Schedule Page to Menu [duplicate]
- How do you manage large menu hierarchies in WP?
- Update body class based on menu
- Trying to Create Menu in WordPress
- Hierarchical menu nesting problem with jQuery targetting
- Highlight current post ancestor parent menu items
- Add code to WordPress menu items by class
- How to customize submenus isn wordpress theme [closed]
- Switch from hover to click on Twenty Twelve Menu
- a better menu, menu options assistance for WP
- Can I have a different menu for each parent page?
- remove class “sub-menu” from wordpress drop down menu
- Add a submenu to wp_nav_menu
- Wrap list parent in div with wp_nav_menu menu
- Insert a div class inside wordpress menu
- Automatically Display Sub Menu
- sub menu link is not working
- Adding toggle-able element after menu item
- Get parents child pages
- How to get submenu of admin menu?
- How to Add support for sub-menu item description in wordpress?
- URL links consistent with menus?
- Add menu headings to WordPress sub menus
- How to check if current page is a parent item or child item in a given menu
- Removing Submenu from Menu
- Controlling sub-menu within sub-menu
- Dropdown primary navigation menu not working
- Link after WordPress
- Set one or more menus as a submenus of another menu
- cannot get global $menu value in form request
- Show Sub Menu on click and not hover
- Custom menu with additional logic for display
- Change hover to onclick on menu
- wp_nav_menu container style args
- Bootstrap Theme Migrated to WordPress
- having a page in multi sub-menu and match current-menu-item
- Why my dropdown menu is effecting main menu?
- Creating navigation out of specific IDs and their children?
- Where to place a svg chevron down in my custom walker?
- Add href to tag in nav menu for mobile
- How to access into the description of a sub menu
- Generate Submenu based on Parent Page using If Statement
- Product categories are mixed when creating menu
- Adding span to a particular text in an menu item
- how to create pages and link them to a menu
- How to separate sub-menu output and keep associated with parent
- Has there been any improvements to wp’s menu handling?
- How to sort a sub-menu, generated with get_pages(), by the page order instead of alphabetically?
- Always show wordpress submenu on responsive header menu
- Show Child of Parent Page including all other parents
- How to display list of child pages with parent in wordpress?
- nav_menu: how to force a subpage switching on the parent menu
- Use menu structure for permalinks
- How to create a menu super voice in WP?
- Add tooltips with image in WordPress Menu?
- Building Menus with the latest posts included
- How to add drop down sub menu from database fields in the particular menu slug
- Display all submenus
- Change sub-menu css class
- Adding Sub Menu In a theme which Do not have Menu Options
- wp_nav_menu changed to wp_page_menu
- Should I custom code drop down menus or use a wordpress plugin?
- How can I alter the visible menu according to which level I am on [closed]
- How to display a submenu as a popup when clicking a button?
- Display sub menus as separate lists
- WordPress menu is getting automatically nested
- What is the best way to incorporate responsive dropdown navigation menu into custom theme?
- Add acf custom fields so sub item in menus
- Give custom class names to WP nav sub-menu