Show WordPress Menu On External Site

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: wp_nav_menu(); Outside WordPress installation