Home › Forums › Bug Reports › default_page_template_title
Hi,
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.
http://www.awesomescreenshot.com/image/1011411/eacf1d96405e24cda4a969477fe0ce14
Hi @misterr
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.
Thanks!
@James, do you think I haven’t done this before starting my topic?
If you can’t reproduce, I can give you access to my test server. How do I have to share credentials?
Hi @misterr
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.
Thanks!
Hi @misterr
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”.
Please compare these two screenshots:
http://www.awesomescreenshot.com/image/1024239/853b74f1812a2dfd6c1e7eb62d4e7f17
http://www.awesomescreenshot.com/image/1024240/3dc953d0c7321279a9cda4710003179d
Hi @misterr
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.
Hi @misterr
Thanks for the feature request.
I’ve got this on my to-do and will hopefully add in the filter to the next version
Thanks
E
The topic ‘default_page_template_title’ is closed to new replies.
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.