
Hi guys,
There’s no new information on this as of right now. That does not have to mean that Elliot isn’t working on it but I have no new information.
@arcanepsyche you raise a good point. I had this issue with the google maps field way back before it was in core. The hardest part here is that for anyone creating a custom field for datetimes right now would have to guess which format elliot will save it in when it does make it into core.
I do believe tho that this Y-m-d H:i:s is the standard format for PHP/MYSQL and should be used.

Hi @david-christie et al.,
I’m gonna create a github issue for this since it does not seem like Elliot has the time to check the forums at this point.
I know he’s more active with issues there as they are curated 🙂
I’ve been looking through *alot* of the source code but can’t seem to find where the translations are applied to the field names thus I can’t comment on any current possibility to override this.

Hi @leramulina
I’m sorry.
We can’t provide help for specific themes. It’s better you contact the theme developers for that.
What I can tell you is that there’s two things you need to fullfil for get_field() to work:
1. You need to put it in the right template.
2. It needs to be inside the loop: https://codex.wordpress.org/The_Loop
There’s an exception to this. You can display the values from one post anywhere by setting the second parameter of get_field() which in the case of posts/pages would be the post ID: get_field('fieldname', $post->ID)
There are a bit more to it as well if you display values from something other than a post but you can find all that information in the documentation.

Hi @fngrl
You’re almost there as you say. Just change this row
$jahrgang = get_field('jahrgang', $term );
into this:
$jahrgang = get_field('jahrgang', $term->taxonomy . '_' . $term->term_id );

Hi @mores
It would seem you’re using some kind of third party custom code to create the look of the repeaters no?
If so we can’t provide help with that as it’s not part of ACF.
In the latest version of ACF Pro there’s a new feature where you can collapse a repeater row to a single field inside the row. Perhaps you can use that instead?

Q1: In order to get the labels you’d have to also fetch the field object.
this can be done with get_field_object(). It will be an array containing the field label as well as the choices with key => value pairs (and more).
Q2: I believe what you want is to sort the repeater field based on the radio fields. Have a look at this: http://www.advancedcustomfields.com/resources/how-to-sorting-a-repeater-field/
That might be enough to get you going!

No problem.
Feel free to post in the forum whenever you have issues with ACF and we’ll try to help you.

Hi @mpridham
The documentation for the google maps field gives you everything you need to get it working.. You can basically copy the entire example and just switch out the field name.
http://www.advancedcustomfields.com/resources/google-map/
All the JS goes in your themes script.js file (or similar) and the PHP/HTML in the template file you want the map to be displayed in. It would need to be inside the loop of the page where the field is applied in admin just like any other ACF field (Or set the second parameter which is the post ID).

Hi,
Thanks for checking!
I believe they all use either the same or similar AJAX lookups yes.
Could you also try the user field? If you have more than 5 users on your site 🙂
I used the user field myself yesterday on a site with 4 000 users and while it wasn’t very fast (not strange with that amount) it did work.

Hey,
You make some valid points as well 🙂
I don’t think this is the same as return value tho. To take your example with the image field many users are so ignorant to how arrays work they’d never get the damn thing to work 😉
I completely agree that the URL field should almost always be set to escape.
In the end this is up to @elliot as he’s the sole developer at this point. I wouldn’t mind having this setting but I also don’t mind setting it myself with hooks.
I will make this into a formal feature request in the github repo and we’ll see how it’s received 🙂 Sound good?

Hi @manucnx
Since you’re not in a real loop you need to specify the second parameter for each function call:
<?php
$posts = get_field('brand_hp');
if( $posts ): ?>
<?php foreach( $posts as $client ): ?>
<?php
$logo_hover = get_field('logo_hover', $client->ID);
$logoclient = get_field('logo', $client->ID);
?>
<div class="brand">
<a href="<?php echo get_permalink( $client->ID ); ?>">
<img class="img-cliente" src="<?php echo $logoclient['url']; ?>" alt="<?php echo $logoclient['alt']; ?>" />
<img src="<?php echo $logo_hover['url']; ?>" alt="<?php echo $logo_hover['alt']; ?>" />
</a>
</div>
<?php endforeach; ?>
<?php endif; ?>

Hi @wube
There is already a request for better and more extensive conditional logic 🙂
It’s being discussed on github and Elliot has plans to extend this functionality in the future so hopefully you’ll be happy with it when it’s being released!

Hi @jackrugile
Just to make sure:
1. Do you get any JS errors if you check your console?
2. Do you have any other plugins that uses select2? If so could you try disabling them?

Hi @wube
I think it’s such an easy thing to do yourself there’s not really need for ACF to add another setting for it. It would probably be more confusing to “non power user” than helpful to power users 🙂
If you want to simply escape values for a specific field type or perhaps even all of your fields you can use the acf/format_value hook:
http://www.advancedcustomfields.com/resources/acfformat_value/

Well there’s also a setting for it in the message field.
“Escape HTML”.
“Allow HTML markup to display as visible text instead of rendering”.
That should be fine no? There’s also the load_value filter which you could possibly use instead of modifying core files.
http://www.advancedcustomfields.com/resources/acfload_value/

No problem!
Good luck with your coding 🙂

No problem! Best of luck in your project.

No problem!
Hmm okay.. Don’t you think you could use comments for this? You can extend comments with ACF to add your own fields as well 🙂
http://www.advancedcustomfields.com/resources/get-values-comment/

Yeah I think it’s WP not behaving as ACF loads up those values from WP functions.

You’re welcome! Best of luck with your network!

No problem @3primt-tony
In what way is there no means no edit the slide? Are there no inputs you can manipulate? Is the slide just a shortcode? If so you might be using a different plugin to create the slides or possibly created your own shortcode in functions or a site-specific plugin.
I would check the “Custom fields” menu first.. there you should be able to find the field and thus see what kind of field it is etc.
I can explain how I usually go about creating a slider with ACF. That might help out.
1. Create a field group under Custom fields.
2. Create a *repeater field* in the field group.
3. Create the necessary fields in the field group. The bare minimum would probably be an image field but you could also add like a text field for a title on the slide etc.
4. Set the location rules. usually to pages.
5. Head over to a page. Click “add row”(or whatever you named it). Add an image to the image field and type in a title in the text field.
6. Head over to the theme. I usually create the entire slider in a component file (it’s own php file) and then include it in page.php. Here’s more details on using the repeater field on the front end: http://www.advancedcustomfields.com/resources/repeater/

Okay 🙂
You can read all about it in the link i posted earlier: http://www.advancedcustomfields.com/resources/register-fields-via-php/
Best of luck in your project!

No problem @jsilver
Best of luck with your project!

No problem. It doesn’t matter how many sites you have in the network since it will just query out that single ID from the wp_sites table (I believe).
get_current_blog_id() does not make an extensive heavy query regardless of size of your network. So it should be fine!
If you’re still worried you can use a tool like Query monitor to see exactly how it affects the sites
https://sv.wordpress.org/plugins/query-monitor/

Ah I see..
you can provide the have_rows() function with a second parameter which is your portfolio pages ID.
//if 2 is the ID of your portfolio page
<?php if( have_rows('recent_project', 2) ): ?>
<div class="row-full-width mb">
<?php while( have_rows('recent_project', 2) ): the_row();
inside the while loop you no longer need to provide the ID.. just use the fields as normal.
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.