I'm using C5 for general content and wordpress for blogging on a site I'm doing. No crazy integration, just a subdirectory with wordpress and the main site with c5. I'll make a custom WP theme. But I'd like to display the recent blog posts on my site's homepage.
I'd like to use the code here:http://codex.wordpress.org/Integrating_WordPress_with_Your_Website...
This is basically just a code snippet saying "include the core wordpress stuff, and pull out the latest 3 blog posts". However, my code works fine in a regular old php file. But when I try to call the same include files in my theme files, or even on the site root's index.php file (which calls dispatcher.php), there's an "error connecting to the (wordpress) database".
I've not dug deep enough or learned enough to know how to require WP files in a C5 theme without causing errors. Any help y'all?