Debugging WordPress SQL Queries
There are various ways to investigate/debug issues with SQL statements within WordPress. I have outlined the most relevant methods below. Enable Debugging First, the debug mode needs to be enabled. This can be done by adding the following entries to the wp-config.php file: define( 'WP_DEBUG', true ); // Enable debugging define( 'WP_DEBUG_LOG', true ); // Write debug information to /wp-content/debug.log define( 'WP_DEBUG_DISPLAY', false ); // Do not display debug information NOTE: WP_DEBUG_DISPL
Webdesigner / Web developer