Title: Insert logic into templates?
Last modified: January 10, 2017

---

# Insert logic into templates?

 *  [durhamm1](https://wordpress.org/support/users/durhamm1/)
 * (@durhamm1)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/insert-logic-into-templates/)
 * Is there any way of inserting logic (using php for example) into templates?
 * I want to be able to display one message if a price is found, and a different
   one if a price isn’t found.
 * Alternatively, is there another way this could be accomplished?

Viewing 1 replies (of 1 total)

 *  Plugin Author [paulstuttard](https://wordpress.org/support/users/paulstuttard/)
 * (@paulstuttard)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/insert-logic-into-templates/#post-8656311)
 * Hi,
 * There is no easy way to do this currently (from inside a post). However it is
   possible to access the plugin’s functions say from within PHP e.g. from within
   the Theme’s code.
 * Cheers,
 * Paul

Viewing 1 replies (of 1 total)

The topic ‘Insert logic into templates?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/amazon-link_070606.svg)
 * [Amazon Link](https://wordpress.org/plugins/amazon-link/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-link/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-link/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-link/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-link/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-link/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [paulstuttard](https://wordpress.org/support/users/paulstuttard/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/insert-logic-into-templates/#post-8656311)
 * Status: not resolved