External database access in WordPress plugin

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.

Read More

Is there a call I need to make in my filtering function so WordPress database access is restored ?

Thank you

Related posts

Leave a Reply

1 comment