Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there way that I can echo out my wordpress menu items to a main site menu. The wordpress install runs in a subfolder of my main site.

I thought there might be a way to do this that is similar to referencing wp-load as a include outside of wordpress

Thanks

share|improve this question
    
Have you seen this answer? You can fetch and embed the result without an iframe. –  toscho Jul 22 '13 at 12:32
add comment

1 Answer

Maybe you are referring to something like this:

<?php 
define( 'WP_USE_THEMES', false );
require_once( '/absolute/path/to/wp-blog-header.php' );
wp_nav_menu( $args ); 

but the current menu item highlighting will not work as expected.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.