Title: Implement Template Files in Theme Code?
Last modified: August 21, 2016

---

# Implement Template Files in Theme Code?

 *  [mattmatt88](https://wordpress.org/support/users/mattmatt88/)
 * (@mattmatt88)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/implement-template-files-in-theme-code/)
 * I need to add informations per php, for example to add the price from a meta 
   box field (because kindle books don’t have price infos).
 * So is there a way to make the code from the template files work directly in theme
   files like the single.php / archive.php etc.?
 * Alternatively, is there a way to add php code to the template files?
 * [https://wordpress.org/plugins/amazonsimpleadmin/](https://wordpress.org/plugins/amazonsimpleadmin/)

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

 *  Thread Starter [mattmatt88](https://wordpress.org/support/users/mattmatt88/)
 * (@mattmatt88)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/implement-template-files-in-theme-code/#post-4734890)
 * Another similar question: Is it possible to get an amazon information (like the
   title of a book) into a php variable e.g. to be able to modify it?
 *  Plugin Author [Timo](https://wordpress.org/support/users/worschtebrot/)
 * (@worschtebrot)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/implement-template-files-in-theme-code/#post-4735136)
 * It’s not possible to get single product details into a PHP variable at the moment.
   But you can get a lot of flexibility by using custom fields with custom product
   templates. How this works is explained here: [http://www.wp-amazon-plugin.com/usage/?#custom_fields](http://www.wp-amazon-plugin.com/usage/?#custom_fields)

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

The topic ‘Implement Template Files in Theme Code?’ is closed to new replies.

 * ![](https://ps.w.org/amazonsimpleadmin/assets/icon-256x256.png?rev=1788380)
 * [Affiliate Super Assistent](https://wordpress.org/plugins/amazonsimpleadmin/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazonsimpleadmin/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazonsimpleadmin/)
 * [Active Topics](https://wordpress.org/support/plugin/amazonsimpleadmin/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazonsimpleadmin/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazonsimpleadmin/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Timo](https://wordpress.org/support/users/worschtebrot/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/implement-template-files-in-theme-code/#post-4735136)
 * Status: not resolved