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:
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?