Home › Forums › Feature Requests › Assign ACF to a post template? › Reply To: Assign ACF to a post template?
Hi charis,
I’m trying to use the plugin along with Single Post Template, I made some few steps, but I’ve got a js error.
This is what I’ve done:
In the main plugin file:
https://github.com/lukechapman/custom-post-template-support-for-acf/blob/master/acf-custom-post-template-support.php
1) I changed all “Template Name Posts” to “Single Post Template” (there are a few)
2) I changed the jquery selector to match the Single Post Template dropdown id: #post_template (instead of #custom_post_template as in CPT plugin)
I have post templates in dropdown,
but when I switch template, I have this js error:
TypeError: acf.screen is undefined
PS: I’m using ACF PRO 3.7.4
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.