I have a voting system on a custom post which uses AJAX, and I have a file that handles the AJAX request. This file is inside a sub folder named
php of my theme. Hence the structure is:
I use the following line to include the
This works fine, but with debug mode on, I see warnings telling me that WP failed to open the stream as the file
blog-header.php is non-existent.
So I tried this:
Warnings gone, but $wpdb not recognized.
Any ideas on how to make this work without the warnings?