This would be very handy for queries. Now I have to create a script to run through and update / add to the post in order to be able to query for it.
Ahhhhh yes that was it. Thank you so much.
Thanks Elliot, I’m still having an issue with this after the update. It will now save with the no formatting option. But when I try and save a text area with a script it still strips the <script> tags out?
This is on an options page in admin.
Hi John, Yes I had debugging turned on. I resolved a few errors/notices from other plugins – but this didn’t solve this issue unfortunately.
No other errors being logged now.
Thanks for your tips – tried them but still no success. Is odd as all other validation works as expected. It was working prior to the 5.5 upgrade as remember “thinking that’s pretty cool one less thing I need to code up myself” 🙂
Works fine when logged in as admin – as soon as I try as a public user it no longer detects the min width restriction.
It was set to min width detection only. Here is my form if that helps:
https://www.winprizesnow.com/submit-a-competition/
I have tried:
– Changing theme to twenty fifteen and testing it on that theme
– Removing all other JS from the page
– Debugging was on – no errors
– Removed all my custom validation rules from functions
– Can’t see any errors in the console.
Ok finally figured this out (documentation isn’t very clear on this one)
If you have zero rows to start with you need to do this:
$field_key = “field_5657dffe586cc”;
$value = get_field($field_key, ‘user_24’);
$value[] = array(“career_enjoyment_id” => “Foo”, “career_enjoyment_file” => “Bar”);
update_field( $field_key, $value, ‘user_24’ );
The $field_key is located in the wordpress posts table assigned to the main repeater. Use the ID from post_name.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.