Title: Code after wp_footer() not executing
Last modified: August 20, 2016

---

# Code after wp_footer() not executing

 *  [ibullock](https://wordpress.org/support/users/ibullock/)
 * (@ibullock)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/code-after-wp_footer-not-executing/)
 * While doing some W3C validation testing on a WordPress site I admin I noticed
   that all the HTML following `<?php wp_footer(); ?>` wasn’t getting executed.
 * I know that at one point at least this was working, and also that not much has
   changed since that time.
 * I’ve since tried disabling each plug-in installed individually, but still have
   had no luck finding the culprit.
 * There are no error messages being displayed either. It seems like things are 
   just kind of stopping there.
 * Any advice on a debugging procedure, or possible fixes would be greatly appreciated!

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * (@imh_brad)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/code-after-wp_footer-not-executing/#post-2390750)
 * Hi ibullock, can you use [pastebin](http://wordpress.pastebin.com/) to show us
   the code that you’re referring to?
 *  Thread Starter [ibullock](https://wordpress.org/support/users/ibullock/)
 * (@ibullock)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/code-after-wp_footer-not-executing/#post-2390873)
 * There’s really not much to put into pastebin. The code as it stands is simply
   HTML ending tags for the body and html elements, but _anything_ I put after the
   wp_footer call doesn’t execute.
 *     ```
       </div>
       <?php wp_footer(); ?>
       </body>
       </html>
       ```
   
 *  Thread Starter [ibullock](https://wordpress.org/support/users/ibullock/)
 * (@ibullock)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/code-after-wp_footer-not-executing/#post-2390875)
 * Here’s a pastebin of what the page code looks like when I view page source:
 * [http://pastebin.com/8mqmUH0e](http://pastebin.com/8mqmUH0e)
 * Things look pretty normal other than the closing tags not rendering.
 *  [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * (@imh_brad)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/code-after-wp_footer-not-executing/#post-2390876)
 * I just got an idea… Maybe something being called within the footer function is
   throwing an error and then stopping execution of the rest of the template.
 * Try enabling errors by editing your wp-config file:
 * `define('WP_DEBUG', true);`
 *  [Brad Markle](https://wordpress.org/support/users/imh_brad/)
 * (@imh_brad)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/code-after-wp_footer-not-executing/#post-2390937)
 * Hi ibullock, have you been able to make any progress with figuring out why that
   coding is not executing?
 *  Thread Starter [ibullock](https://wordpress.org/support/users/ibullock/)
 * (@ibullock)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/code-after-wp_footer-not-executing/#post-2390941)
 * Hi Brad,
 * I’m just getting a start on debugging things this morning. Looks like a few plugins
   are having issues. “Headers already sent” seems to account for most of them. 
   But some are also coming up with undefined indexes.
 * Thanks for the tip about the DEBUG setting in wp-config, I don’t know why I didn’t
   think about that.
 * I’ll post again once I’ve got things figured out.
 *  Thread Starter [ibullock](https://wordpress.org/support/users/ibullock/)
 * (@ibullock)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/code-after-wp_footer-not-executing/#post-2390943)
 * Looks like something got uncommented in the theme’s functions.php and was causing
   a bunch of errors down the line.
 * Thanks for the help!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Code after wp_footer() not executing’ is closed to new replies.

## Tags

 * [footer](https://wordpress.org/support/topic-tag/footer/)
 * [wp_footer](https://wordpress.org/support/topic-tag/wp_footer/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [ibullock](https://wordpress.org/support/users/ibullock/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/code-after-wp_footer-not-executing/#post-2390943)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
