Title: PHP code to use in templates?
Last modified: August 20, 2016

---

# PHP code to use in templates?

 *  [VentureMaker](https://wordpress.org/support/users/venturemaker/)
 * (@venturemaker)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/php-code-to-use-in-templates-1/)
 * Is there a PHP code that I could paste into templates manually and not rely of
   plugin’s ‘auto-injection’?
 * [http://wordpress.org/extend/plugins/table-of-contents-plus/](http://wordpress.org/extend/plugins/table-of-contents-plus/)

Viewing 1 replies (of 1 total)

 *  [conjur3r](https://wordpress.org/support/users/conjur3r/)
 * (@conjur3r)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/php-code-to-use-in-templates-1/#post-3449146)
 * Nothing directly but maybe:
 * `echo do_shortcode('[toc]');`

Viewing 1 replies (of 1 total)

The topic ‘PHP code to use in templates?’ is closed to new replies.

 * ![](https://ps.w.org/table-of-contents-plus/assets/icon-256x256.png?rev=1151771)
 * [Table of Contents Plus](https://wordpress.org/plugins/table-of-contents-plus/)
 * [Support Threads](https://wordpress.org/support/plugin/table-of-contents-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/table-of-contents-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/table-of-contents-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/table-of-contents-plus/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [conjur3r](https://wordpress.org/support/users/conjur3r/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/php-code-to-use-in-templates-1/#post-3449146)
 * Status: not a support question