re-connect to WP database after query to other database
-
Hi there,
i have a WP site where one page has to access another database.
it all works well but the navigation on the bottom goes missing.both top and bottom navigation are created using:
wp_page_menu(‘include=x,y,z’);after some fiddling i determined that WP looks for the function in the wrong database.
Table ‘xxxx.wp_posts’ doesn’t exist
where xxxx is the database i just queried. how do i get back to the WP database?
cheers
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘re-connect to WP database after query to other database’ is closed to new replies.