WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
[resolved] Duplicated field groups in edit page (17 posts)

  1. Hesadanza
    Member
    Posted 1 year ago #

    I have v3.3.6 of Advanced Custom Fields installed, and only one field group. When I go to the edit post screen, I get two sections for that field group, with nearly the same fields in them both. Putting data into one field group only partially works. I have to put some of the data in the other group in order for all fields to work. This seems like a bug. Any ideas why I'd be seeing the group twice in the edit screen?

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Hesadanza, This is very odd.

    Can you provide some screenshots?

    Thanks
    Elliot

  3. Hesadanza
    Member
    Posted 1 year ago #

    Yes, it is odd.

    Here is a screen shot showing the field group duplicated:
    http://i.imgur.com/QV6Bi.jpg

    You can see that not every field in the group is duplicated; two of the text fields are not duplicated in the second group.

    Again, I only have one field group.

  4. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Hesadanza,

    Is it possible that you have a field group registered with PHP?

    ACF will load the registered field groups + the normal field groups, thus looking like a duplicate.

  5. Hesadanza
    Member
    Posted 1 year ago #

    How would I have a field group registered with PHP? I haven't done anything else with custom fields.

  6. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Any chance you can create me an account and email the details to support [at] advancedcustomfields.com

    Thanks

  7. Hesadanza
    Member
    Posted 1 year ago #

    Ok.. what role do you need?

  8. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Idealy, an admin would be the best, but an editor will be able to see the edit screen for both the post and the field group.

    I just want to take a look at the markup with firebug and see what acf is doing

  9. Hesadanza
    Member
    Posted 1 year ago #

    ok, I just added a user to the account for you. You should receive an email. When you add a new post, you'll need to select the "Article" category in order to trigger the field group, and two will show up. The second will be empty. If you save the draft, and reload it, both field groups will display most fields.

  10. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Just took a look and in the post edit screen, there are 2 acf field groups waiting to show (when you click the article category).

    The id of the second field group was "acf_5018c894a82d4", this backs up my thought that you have a field group registered via PHP.

    Maybe your theme uses acf to add a field group? Or maybe someone has placed the code in your functions.php file?

  11. Hesadanza
    Member
    Posted 1 year ago #

    How do you register field groups via PHP? I haven't done so. I'm using Twenty-Eleven theme. I haven't placed anything extra in the functions, I don't think.

  12. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    Can you please change my account role to administrator.

    Then, I can view your theme files and help you out

  13. Hesadanza
    Member
    Posted 1 year ago #

    Ok, you are now an admin.

  14. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    I looked at your functions.php file and on line 619 is the register field group function.

  15. Hesadanza
    Member
    Posted 1 year ago #

    Ok, I guess I did add those. Do I just need to remove those from functions.php?

  16. elliotcondon
    Member
    Plugin Author

    Posted 1 year ago #

    yes

  17. Hesadanza
    Member
    Posted 1 year ago #

    Great. Thanks.

    I guess I was confused when setting up the plugin, and thought that I needed to insert those lines into the functions.php file to make it work correctly...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags