Support

Account

Home Forums Bug Reports No accented char in the post_name of the acf group

Solved

No accented char in the post_name of the acf group

    • Etic

    • November 15, 2013 at 9:06 am

    This is not really a bug, but it would be good to replace accented characters in the post_name of the acf group on creation.

    • Elliot

    • November 17, 2013 at 10:45 am

    Hi @etic

    Can you please elaborate a bit more on what you mean by the post_name of the acf group?

    Perhaps some screenshots will help?

    Thanks
    E

    • Etic

    • November 18, 2013 at 3:54 am

    Hi @elliot, of course.

    When we create an ACF fields group, it is stored as a wp_posts record in the database and the post_name db field (which is the id of the group) is an generated string from the group title, e.g:
    – The group title (post_title db field) is Options : Général
    – The generated id (post_name db field) will be acf_options-g%c3%a9n%c3%a9ral

    The equivalent php export result will be:

    register_field_group(array (
    ‘id’ => ‘acf_options-g%c3%a9n%c3%a9ral’,
    ‘title’ => ‘Options : Général’,
    ‘fields’ => array ( …

    It would be better for us, french fan of ACF, to have a non-accented generated group id 😉 That id would be acf_options-general

    • Elliot

    • November 18, 2013 at 8:44 am

    Hi @etic

    Thanks for the data, yes, I will add this to the to-do and have this fixed in an update!

    Thanks
    E

    • Elliot

    • November 18, 2013 at 11:18 am

    Hi @etic

    Thanks again for the bug report.

    This has now been fixed and you can find the latest code on github.
    Please note, you will need to re-save your field group to correct the post_name data.

    Thanks
    E

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.