ACF doesn’t pay attention to the filter ‘default_page_template_title’.
Eg. After changing it to “Simple Page”, ACF still shows “Default Template” in “Location” section.
I’m afraid I couldn’t reproduce this issue on my end. Could you please try to reproduce the issue on one of the WordPress’ stock themes (like Twenty Fifteen) with other plugins deactivated? If it disappears, then you can activate the theme and plugins one by one to see which one causes the issue.
You can share credentials by changing your answer visibility to private. You can also open a new support ticket here: http://support.advancedcustomfields.com/new-ticket.
I’ve just tested your site, and it was working as it should be. Also, your testing site doesn’t have “Simple page” template, so I chose the “Example page” template and save it.
It’s possible that you have a broken template (Simple page) so that template can’t be chosen for the location rule.
Could you please test it out again? Thanks!
I thought that ACF support members are more penetrative 🙂
Do you know the purpose of “default_page_template_title” filter?
It changes “Default Template” label to smth else. In my case to “Simple Page”.
I’m sorry I didn’t realize that ‘default_page_template_title’ is a hook. Mostly, It’s because I never used it or had an issue about it. In the future, please explain it in more detail because vaguely explaining the issue won’t help both you and I. If you could add the docs page about that hook, that would be great too.
Regarding your issue, I’m afraid ACF adds the default template name manually. You can see it in “wp-content/plugins/advanced-custom-fields-pro/admin/field-group.php” line 805:
'default' => __("Default Template",'acf'),
If you want to fix it, you can change that line with this code:
'default' => apply_filters( 'default_page_template_title', __( 'Default Template' ), 'quick-edit' ),
Keep in mind that the changes in the core files will be disappeared on plugin updates.
If you want it to be permanent, please open a new ticket here: http://support.advancedcustomfields.com/new-ticket.
I hope this helps.
I’m not going to edit plugin’s core files. That’s a bad idea!
And honestly I don’t care much about it. But thought it can be good to update ACF plugin so it will show correct title of the default template. If you can please notify developers of this wonderful plugin about this statement.
You must be logged in to reply to this topic.
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!
© 2022 Advanced Custom Fields.