Support

Account

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