Skip to main content

General

WordPress – Add DB Queries and Loading Time to Footer

Brandon Hopkins1 min read

Once you know the code, it’s pretty simple to implement.  Without the code, good luck!

Open up your WordPress admin and navigate to Appearance > Editor.  Click on Footer on the right side.  Find the bottom of your footer, near your copyright.

Put this code in wherever you want it.

<?php echo $wpdb->num_queries; ?> queries. <?php timer_stop(1); ?> seconds.

There you have it. You can add something like this if you want to:

This page called the database <?php echo $wpdb->num_queries; ?> times and was loaded in <?php timer_stop(1); ?> seconds.

Post a comment if you have problems.

Keep reading

General1 min

Creating a Strong Brand with Twitter

Twitter has become one of the most common ways I find people, services and even support. With Twitter, you can create a strong brand, or you can weaken your…