how to see sql queried by wordpress when opening a page
For learning purpose, it's meaningful to looking at sql sentences queried by Wordpress. But how to do this? Here is the answer. First, edit the wp-config.php file, just add one line of code. Then, find the common footer.php file of your Wordpress theme, add the following code before the ending