
Have you included the necessary JS and CSS?
Check the section for JS and CSS here: http://www.advancedcustomfields.com/resources/google-map/

Hi,
Okay I see..
You can actually use the acf_form() function within your own form by setting the form parameter to false.
Then you can also set either which specific fields or specific field groups you want to include.
So you should be able to keep your own setup while still using acf_forms simplicity 🙂 Have a look at the parameters found on the link i posted above.

Hi @khleomix
Can you please put your code on either codepen or pastebin or at least as a code element here 🙂 It’s very hard to read as plain text.

No there’s no way to change the layout of an already created row (on a posts edit-page for example) since the fields in a layout can be (and should be, otherwise whats the point) very different. There’s no guarantee the same type of fields or fieldnames exists between different layouts so trying to add this as a feature would be pretty much impossible I think.
You’d simply have to create a new row with the layout you want and copy paste the values over and then delete the old layout row.

To clarify, what you want to do is add a new row from a flexible field to a post at first publish.
Are you publishing this post from the front end? Otherwise, why do you need to do this?

Hi @tapioka
This happens due to you having this in your style.css
img{ max-width:100%; height:auto; }
Reverse this specifically for the google maps container and you’re good to go! (of course set your own class, this is just an example
.googlemaps img{ max-width: none; }

Ah nice. I suppose a hacky solution would be to do this on the front end instead, checking for an existing value beforehand so it’s only done once.
Hm, I would’ve thought you’d see some attachments there.
so wp.media.gallery.attachments does not return anything from that function? Based on that comment it seems it should’ve returned the media items.

To be honest I’ve never tried to hook into anything like this..
Have you checked what wp.media contains when setting images for the gallery field?
Also, just out of curiosity, to what end do you need this? 🙂

Hi @delx
Thanks for the clarification!
So your new post form, are you using acf_form() for this or is it something you’ve put together yourself?
http://www.advancedcustomfields.com/resources/acf_form/
If it’s a custombuilt form maybe think about switching to acf_form() as you’d get all and any fields attached to the post type automatically and everything “just works” 🙂

No worries, glad you got it working!
It’s a fairly easy transition to repeater field so it shouldn’t be too hard for you to change it if you want 🙂 Your structure can still be used.

No worries mate!
Glad I could help out.

Hi @faza
This sounds a bit weird to me. I’ve used ACF on many multisite installations (with subdirectory) without issues.. Generally I network activate it tho. Have you network activated it (if you haven’t could you try that)?
Also, what is the whole URL of the files trying to load on the subsite?

Hi @pumpiniron
This is a bit off the point but why are you not using the repeater field for this? That way your field setup would be much easier, your template code would be shorter and you’re not limiting yourself to 3 slides.
http://www.advancedcustomfields.com/resources/repeater/
When I check your site it seems to be working now? Did you resolve this?

Hi @cjf9
You need to do the same for the tax field as with all your others and set the second parameter the same way.
<?php
$queried_object = get_queried_object();
$taxonomy = $queried_object->taxonomy;
$term_id = $queried_object->term_id;
$related_terms = get_field('quick_links', $taxonomy . '_' . $term_id);
if( $related_terms ): ?>
<ul>
<?php foreach( $related_terms as $related_term ): ?>
<a href="<?php echo get_term_link( $related_term ); ?>"><?php echo $related_term->name; ?></a>
<?php endforeach; ?>
</ul>
<?php endif; ?>

Hi @delx
I need more to go on.
Please describe your setup a bit more clearly and what you’re actually trying to achieve 🙂

Hi @daretothink
So when you change your current language in wp-admin while editing an options page the fields are still filled with the same as in the previous language?
I need to do some testing to this as I haven’t used the options page in a long time in an multilingual setup.

Hi,
Okay. Can you try without including google maps js file yourself. Since ACF likely adds it with acf_form_head when there’s a google maps field.

Yeah,
That’s what I’m thinking too. Since you include them directly as a file nothing is put into DB and ACF reads directly from the file thus there’s no ID.

Hi,
Okay. ACF gives you the choice of which tabs to show when creating the wysiwyg field. If you check your wysiwyg field in the field group make sure you have “Tabs” set to “Visual & text”. Then you should see the tabs unless your custom tinyMCE plugin conflicts with this.
I just tested it myself and it works 🙂

Hi,
Okay. I took a deep dive into how the ajax works for the post object field and it seems it’s actually calling the acf/fields/post_object/query action for the ajax querying.
http://www.advancedcustomfields.com/resources/acf-fields-post_object-query/
All the logic happens there.
But I’m not sure you can do an add_filter from within an ajax call.. I don’t see a way around this to be honest.

Hi @jabbamonkey
ACF doesn’t have it’s own cropping feature but uses WP Cores so it should be the same no matter if you crop the image directly or via media library.
You say you’ve used the “image crop plugin, for ACF”. Is this some third party plugin you’re talking about?
Also, please note that the “preview” of an image you see when adding an image to an image field can be whatever size you choose when creating the image field and does not reflect what is being returned when you use the field value in your theme. Perhaps that’s what you’re talking about?

Hi,
If you check the console in Chrome, do you see any JS errors?

Forgot to mention that it’s a good idea to only include your scripts when needed. Using this filter will help you with that!
http://www.advancedcustomfields.com/resources/acfinputadmin_enqueue_scripts/

Hi @charles9
Unfortunately no there’s currently no option to show or hide specific fields or tabs depending on the users role.
However I think you could do this yourself with a bit of custom Javascript..
You’d have to do an AJAX call when a page loads to first fetch the role of the current user. Then in JS you can just hide the fields you don’t want them to see depending on the returned role.

Hi @raj
WordPress 4.2.2 doesn’t have a HTML icon per default (I think it disappeared some time ago). Instead most people use the text tab to the right.
Is that what you’re referring to? Being able to see and edit the content of the editor as raw HTML?
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.