Title: Help needed with php templates
Last modified: May 15, 2025

---

# Help needed with php templates

 *  Resolved [patsky](https://wordpress.org/support/users/patsky/)
 * (@patsky)
 * [1 year ago](https://wordpress.org/support/topic/help-needed-with-php-templates/)
 * I’ve just encountered an issue having updated PODS to the latest version and 
   broken my site because of changes to php support. It’s been restored to the older
   version now, but is there anyone who can help me navigate my way through what
   needs to be done? 
 * I posted the above elsewhere but was kindly asked to start my own query. I’m 
   posting the exchanges so far:
 * Plugin Author[Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/)(
   @sc0ttkclark) has already replied :
 * This may help you bring your templates into your theme: [https://docs.pods.io/displaying-pods/pod-template-hierarchy-for-themes/](https://docs.pods.io/displaying-pods/pod-template-hierarchy-for-themes/)
   and there’s also the Pods component “Migrate: Pod Page and Pod Template PHP into
   File-based templates” you can enable at Pods Admin > Components. That tool will
   help you export them to the file-based templates automatically in most cases.
 * If you still require PHP support for your templates, you can choose the alternative
   route of using the following code: [https://gist.github.com/sc0ttkclark/35a15e6f93622c45f12d671184fb1315](https://gist.github.com/sc0ttkclark/35a15e6f93622c45f12d671184fb1315)
 * [patsky](https://wordpress.org/support/users/patsky/) (@patsky)
 * Hi Scott. Thank you for your reply and I’ve looked at that page but not really
   understanding what I need to do.
 * Currently my templates are called in the WordPress pages I have set up using 
   the Template box -‘page-witnesses.php’ and ‘page-testimonies.php’ are located
   in the root of the child theme.
 * Also in root are 4 ‘taxonomy-‘ files.
 * in a folder ‘pods-custom-templates’ I have templates : 
   content-witnesses.phpcontent-
   day.phpcontent-people.phpcontent-testimonies.php
 * In some pages I use the pods shortcodes to display content where no filtering
   is necessary.
 * If I’m understanding, I can still use the php templates but do they need to be
   put in a different location in my child theme or is their content put someplace
   else? Sorry if I’m seeming dumb! I’d be very grateful if you could give me a 
   complete example please. 

Viewing 1 replies (of 1 total)

 *  Plugin Support [pdclark](https://wordpress.org/support/users/pdclark/)
 * (@pdclark)
 * [1 year ago](https://wordpress.org/support/topic/help-needed-with-php-templates/#post-18496616)
 * It sounds like there is a mix of page templates in a child theme, including references
   to Pods templates configured in WP Admin, which then again contain PHP.
 * Because there are many details in such a configuration which would effect reconfiguration,
   the quickest solution will likely be to add the filters linked at [https://gist.github.com/sc0ttkclark/35a15e6f93622c45f12d671184fb1315](https://gist.github.com/sc0ttkclark/35a15e6f93622c45f12d671184fb1315),
   which should re-enable PHP in later versions of Pods, allowing the theme to not
   need to be reconfigured.

Viewing 1 replies (of 1 total)

The topic ‘Help needed with php templates’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [pdclark](https://wordpress.org/support/users/pdclark/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/help-needed-with-php-templates/#post-18496616)
 * Status: resolved