I have developped a small WordPress plugin that filter the page content setup thru a add_filter(‘the_content’…) call.
My filtering function does include PHP files that makes external database calls thru the use of Pear MDB2 classes, it appears that after these database functions have finished executing, all WordPress calls outside the filtering function that need WordPress database are failing. The page does not display categories and apparently no dynamic content that uses the WordPress database.
Is there a call I need to make in my filtering function so WordPress database access is restored ?
Thank you
You should try this to see if you have a (wp)DB connection.
$wpdb is the object which connects to the db
http://codex.wordpress.org/Class_Reference/wpdb