As always, just writing the post allows my brain to solve the issue…
So, I was logged in as admin, trying to pick images for an ACF gallery attached to a User—a different user. Of course, I realized that I had the “Limit the media library choice” option set to “Uploaded to post.” I wanted to use images that this admin account had uploaded but I guess that setting trumps all that. Close this one out!
I have found the reason.
To make ACF’s acf_form()
work, acf_form_head()
needs to be called.
I was calling it without any checks for environment at the top of my buddypress.php
master template file.
I have now reduced it’s call only to where I have acf forms and things seem to be working again.
Sorry for the run-around.
So, I’m working with Brajesh of BuddyDev on this and he wants to know
…in which file they (ACF) are loading the media dependency js files.
Thanks, James.
I just private posted a link and creds to login.
It seems to only occur in the Buddypress areas (Groups and Members).
I needed this answer, too, so for posterity:
You need to get the field object:
$map_object = get_field_object('your_map_field_name');
That will give you all the field settings. e.g. print_r($map_object)
:
Array (
[key] => field_1234567890
[label] => Map
[name] => your_map_field_name
[_name] => your_map_field_name
[type] => google_map
[order_no] => 1
[instructions] =>
[required] => 0
[id] => acf-field-map
[class] => google_map
[conditional_logic] => Array (
[status] => 0
[rules] => Array (
[0] => Array (
[field] => null
[operator] => ==
)
)
[allorany] => all
)
[center_lat] =>
[center_lng] =>
[zoom] => 12
[height] => 300 (there it is, yay!)
[field_group] => 123
[value] => Array (
[address] => 123 Main St Anywhere USA
[lat] => 12.3456789
[lng] => -123.456789
)
)
ps – just realized this is exactly one year later. weird.
Ok, it takes HTML. Nevermind on the whole thing.
Nevermind. Just discovered the ‘Message’ field. Nothing in the docs?
Still would be nice to add an ‘Edit <post type>’ link.
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.