Hey @eddr,
Do you have a lot of fields? Before I had the problem with the same field names, my problem was that the max_input_vars
setting in php was set too low (default is 1000 I believe).
Maybe you can check your php log and see if it gives you any errors about that? And if it does put something like php_value max_input_vars 3000
in your .htaccess file, or edit (if you can) your php.ini file.
Hi James,
Does and doesn’t make sense, since I can access the data on the frontend (I didn’t try every field obviously, but a lot of them) one would think the data is properly saved in the database. But I’ll give all of the fields a unique name and try again, thanks for your help so far! 🙂
Edit: Yep, that did it! Thanks so much 🙂
I’m not sure if I understand your question correctly, but if you set the display mode of the clone field to “group” instead of “seamless” you’ll be able to set all the conditional login in your clone field. Hope that helps:)
Hi James,
Thanks so much for your reply, all the Field Names were already prefixed, the labels aren’t but I assume this shouldn’t make a difference right?
https://drive.google.com/file/d/0B3wNowEzXV_3RjNFdW9mTjdqYTQ/view?usp=sharing
That’s the JSON file, as for a code example, I haven’t really started working on the actual template yet. get_fields()
and get_field('field-name')
is all I’m doing right now and I can see all the values, also the ones that don’t show up in the backend and image urls.
P.s. As explained there are 2 radio buttons determining which clone fields appear, each radio button has 5 options. The “login form” option is the only one that shows the values in the backend. I tried messing around with the order of things (so that “login form” is no longer the first option), but it didn’t help.
Edit: I forgot to mention, if you’re going to import my JSON settings, everything may not work as expected because I’m using some css to tweak the appearance. I’ve added the css rules below, obviously the .hidden
class sets the display to none.
.acf-clone-fields > .acf-field-repeater.hidden {
display: block !important;
}
.acf-field-left {
float: left !important;
}
.acf-field-right {
float: right !important;
}
.acf-field-repeater.hidden > .acf-label > label {
display: none !important;
}
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.