Title: Getting WP code to work?
Last modified: November 29, 2017

---

# Getting WP code to work?

 *  [GregW](https://wordpress.org/support/users/gwmbox/)
 * (@gwmbox)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/getting-wp-code-to-work/)
 * I am not able to get WordPress code like
 * `<?php echo get_stylesheet_directory_uri(); ?>`
 * to work within the content in the footer?
 * so for example, if I add the following to the Scripts in Footer
 * `<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/myslider.js" type
   ="text/javascript" charset="utf-8"></script>`
 * It outputs the exact code, e.g.
 * `<script src="<?php echo get_stylesheet_directory_uri(); ?>/js/myslider.js" type
   ="text/javascript" charset="utf-8"></script>`
 * Thanks
    -  This topic was modified 8 years, 6 months ago by [GregW](https://wordpress.org/support/users/gwmbox/).

The topic ‘Getting WP code to work?’ 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/)

 * 0 replies
 * 1 participant
 * Last reply from: [GregW](https://wordpress.org/support/users/gwmbox/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/getting-wp-code-to-work/)
 * Status: not resolved