• Resolved sparkyboy22

    (@sparkyboy22)


    I am trying to access wp_nav_menu so that I can use the main menu set up in wordpress in my shopping cart software. (Interspire if it matters)

    I understand that using require(‘/wp-blog-header.php’) should give me access to the wordpress functions. However as soon as I add this line to the page code I get an error that page cannot be found.

    WordPress is installed to the root and the cart software is installed to https://www.com/shop/

    When i add this line, (again if it makes any difference it is to: /shop/includes/display/PagesMenu.php), I get the page cannot be found error as it is trying to load https://www.com/shop/wp-admin/install.php

    I have searched high and low for two days and I cannot find anyone else with the problem.

    Any ideas?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Thread Starter sparkyboy22

    (@sparkyboy22)

    Apologies for this – I found the answer.

    Needed to add the require to the init.php not the pagesmenu.php file.

    All solved.

    Thank you for reading.

Viewing 1 replies (of 1 total)
  • The topic ‘Unable to require wp-blog-header’ is closed to new replies.