i want to display my wordpress top navbar outside of wordpress system in one of my php site, so that whenever i change the wordpress navbar the changes will reflect on my php site.

How to do that?

I have found it somewhere but unable to know how to use it:

// no theme output
define('WP_USE_THEMES', false);

// initializes the entire Wordpress
require '/path/to/your/wp/wp-blog-header.php';

// here you print your menu
  • Hi Manindra Singh, could you provide more details on what you've tried already (and why it didn't work)? – kraftner Dec 8 '14 at 11:47
  • @kraftner: i have read it somewhere but unable to knwo that where and how to put this code.you can check my updated question. – Manindra Singh Dec 8 '14 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.