Support

Account

Home Forums Backend Issues (wp-admin) Fields are showing like native WordPress custom fields

Solved

Fields are showing like native WordPress custom fields

  • Hello there,

    We’re using Advanced Access Manager alongside ACF to create users that can only edit (and see) very particular sections of the admin. When I log in as one of the created roles from Advanced Access Manager – I see the custom fields displayed as the native WordPress custom fields, not the ACF version.

    Any idea how I can remedy this?

    Using: WordPress 3.6, ACF 4.2.2, and Advanced Access Manager 1.7.5.

    Thanks!
    Jake

  • Hi @Jake Love

    I’m not sure what you mean by this.

    Screenshots?
    Errors?
    Console log errors?

  • Hi Elliot,

    Thanks so much for the response! Let me try and do a better job of explaining the issue. There are no errors or console log errors or I wouldn’t be submitting this ticket :-).

    When a user logs into WordPress with a native role (e.g. Admin, Editor, Contributor, etc) the Advanced Custom Fields show in the correct type (such as image upload, file upload, etc) and the UI is present.

    Screenshot: http://www.entercomweb.com/ss/Image08-27-2013_10-16.png

    When a user logs into WordPress under one of the newly created roles — they only see the native WordPress custom fields UI.

    Screenshot: http://www.entercomweb.com/ss/Image08-27-2013_10-17.png

    Again — there are no JS errors and no errors in the PHP error log. Let me know what you think.

    Thanks!
    Jake

  • Hi @Jake Love

    Can you check the DOM for the field group? You will find that all ACF field groups are added to the page, but are hidden and none of the fields are rendered.

    Can you find the field group metabox? Are there fields inside? Is it hidden?

    Also, please check your field group location rules. Are any of your rules user type specific?

    Can you post a screenshot of the field group including the location rules?

  • This reply has been marked as private.
  • Hi @Jake Love

    I’m not too sure about the script issue. Looks like something is removing the .js extension and replacing it with a .map – this is most odd and I have not seen this before.

    I would first attempt to fix all errors to ensure that ACF can work as expected.

    Perhaps you have another plugin which is modifying core files? Or a theme?

    Thanks
    E

  • Hi Elliot,

    I did some research and it looks like that JS error is actually from the Chrome dev tools — so it’s not related to this issue at all. If I crack this open with Firebug the error is not present.

    Back to troubleshooting. What are your thoughts on the missing group? I see the correct group in the DOM when logged in as a normal user, but it isn’t there when I log in as my custom role.

    Let me know what you think.

    Thanks!
    Jake

  • Hi @Jake Love

    Have you tired swapping to a default WP theme? This will rule out if your theme contains a filter which is removing the metabox for the non admin user

  • Hi Elliot,

    The theme we’re using is a child-theme of TwentyEleven and I’ve reviewed the functions.php of both — nothing listed that would hide the meta box there.

    Let me know what else we should look at.

    Thanks!
    Jake

  • Hi @Jake Love
    Perhaps the quickest way to find the issue source is to create a fresh install of WP with ACF.

    Create your field group and test with the admin user.

    Now install you user role manager plugin and test with the new user role.

    Does the issue persist?

  • Hi Elliot,

    Forgive me for this — but wouldn’t this be the same thing as deactivating the plugin, testing it with the admin login (that already works), and then reactivating it?

    The issue is not with any of the default user roles, it’s with created user roles.

    Are you thinking that perhaps there is something corrupt with one of the two plugins?

    The reason I ask is that this process was how we originally did everything. The site was created using ACF, and everything worked fine. Then we added the Advanced User Roles plugin and fields didn’t show only for those newly created roles.

    If there are different reasons you’re wanting me to spin up a new WordPress instance and test this — please let me know. I’d just like to minimize the amount of extra work we need to do unless there are very specific reasons. Let me know what you think and I’ll continue to problem solve with whatever you recommenced.

    Thanks so much!
    Jake

  • Hi @Jake Love

    Exactly, the idea is to pinpoint the exact conflict by either removing 1 plugin at a time, or starting fresh and adding 1 plugin at a time.

    Thanks
    E

  • Hi Elliot,

    It was a rather lengthy and involved process to clone out the site and run the tests as you requested — which is why it’s taken me 3 weeks to respond.

    After the clone I went through and disabled plugins one at a time to see if I could get the fields to show. No dice. It appears that the issue is between ACF and Advanced Access Manager as expected.

    Any thoughts? Should I just look for a different role management plugin?

    Thanks,
    Jake

  • Hi @Jake Love

    Thanks for getting back to me on this one.
    I can’t guarantee that ACF works with all plugins, this is unfortunately a case where I can’t offer much support.

    You could attempt to use another role manager plugin, or perhaps contact the dev of the plugin to see if there is any compatibility fix they can offer?

    Good luck

    Cheers
    E

  • Hi Elliot,

    Thank you so much for all your troubleshooting assistance. After reviewing the roles created by the plugin, I realized the roles themselves weren’t as substantial as I thought. That being the case I decided to nix the role plugin idea and just write a plugin that does what I need.

    Again – thank you so much!

    Jake

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

The topic ‘Fields are showing like native WordPress custom fields’ is closed to new replies.