Title: Insert PHP code into footer.
Last modified: August 4, 2017

---

# Insert PHP code into footer.

 *  Resolved [jaggerwarellc](https://wordpress.org/support/users/jaggerwarellc/)
 * (@jaggerwarellc)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/insert-php-code-into-footer/)
 * Hi,
 * I am using another plugin called TablePress. I would like to insert a table from
   TablePress into my footer.
 * TablePress uses short codes (like ‘[table id=5 /]’) in the body of a page or 
   post. But, it doesn’t support using a short code in the header or footer.
 * In their documentation, they have a workaround for this. That would be to insert
   something like the following into the page footer:
 * <?php tablepress_print_table( ‘id=1&use_datatables=true&print_name=false’ ); ?
   >
 * or
 * <?php tablepress_print_table( array(‘id’ => ‘5’) ); ?>
 * So, I tried to do this using the Footer field in this plugin.
 * When I view the web page source, I see this exact PHP code in the source of my
   page. But, it doesn’t seem to execute the PHP function call to insert the table.
 * The code is on this page:
 * [http://www.thecoffeebeanmenu.com](http://www.thecoffeebeanmenu.com)
 * Any ideas?
    Thanks in advance for your help…
 * Regards,
    sjmyst

Viewing 1 replies (of 1 total)

 *  [Dave](https://wordpress.org/support/users/deb255/)
 * (@deb255)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/insert-php-code-into-footer/#post-9396687)
 * This plugin does not support inserting PHP code in the footer or header. You 
   can only add CSS, HTML, and / or JavaScript code using this plugin. You can look
   at this plugin: [https://wordpress.org/plugins/insert-php-code-snippet/](https://wordpress.org/plugins/insert-php-code-snippet/)

Viewing 1 replies (of 1 total)

The topic ‘Insert PHP code into footer.’ is closed to new replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Dave](https://wordpress.org/support/users/deb255/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/insert-php-code-into-footer/#post-9396687)
 * Status: resolved