I’ve solved reading this FAQ:
http://www.advancedcustomfields.com/faq/limit-number-fields/
Seems as there is no easy way.
Try:
<div><?php echo make_clickable(do_shortcode("[acf field='file_sharing_name']")); ?>
Or:
<a href="<?php echo do_shortcode("[acf field='file_sharing_name']"); ?>"><?php echo do_shortcode("[acf field='file_sharing_name']"); ?></a>
Dont know it if works, cannot test now with your shortcode output.
Works with standard output.
I know topic is old, but if it can help others.

Hi @rongdesign
Thank for pointing this out.
I have passed this to the developer so that he can fix the issue.
The code should be something like this:
$image_ids = get_field('gallery', false, false);
$shortcode = '[gallery ids="'.implode(",", $image_ids).'"]';
echo do_shortcode($shortcode);

Hi @nexthere
Not sure why ACF fields are not saving in posts in your WP instance.
Have a look at these resource: Field value won’t save
Hmm… Also enable wp_debug to show the errors if any. These errors will point you to what is causing the issue.
I know this thread is aging, but any help would be greatly appreciated.
I have a similar problem, which I cannot seem to locate a solution for in the documentation or forum, but this looks as close as I can get so far.
I have a default category.php template and have added the following code to it to display my category icon, which works on the index.php page of my site just perfectly.
<?php
$args = array(
'orderby' => 'name',
'order' => 'ASC'
);
$categories = get_categories($args);
foreach($categories as $category) { ?>
<?php echo $image_url=the_field('event_type_category_icon', $category); ?>
<img src="<?php echo $image_url=the_field('event_type_category_icon', $category); ?>" />
<?php }
?>
But when I want to display the specific category icon on its coordinating category page, it displays an image ID instead of the image URL (which would reflect the image itself) and shows that the image is coming from the actual /category/ directory as well which is not true.
Please help!
Michael
So, I wound up using save_post vs acf/update_value, and that seems to work.
Here’s my final working function for anyone else that’s looking to extract lat/lon out of the map field:
function rhm_update_latlon($post_id, $post, $update) {
$map = get_post_meta($post_id, 'map_location', true);
if (!empty($map)) {
update_post_meta( $post_id, 'loc_lat', $map['lat'] );
update_post_meta( $post_id, 'loc_lng', $map['lng'] );
}
}
add_action('save_post', 'rhm_update_latlon', 90, 3);
That said, it would still be great to see the map_location data stored separately as individual fields (even better would be to break out the individual address components) so they could all be queried and extracted as needed.
Hello,
Today, I have the same issue as Loïc at OVH hosting.
It’s WP_Http_Curl->request() method which is called
When I debugged, I had a curl_errno = 7
[7] => ‘CURLE_COULDNT_CONNECT’
I contacted OVH support for knowing what is wrong because Elliot said to me the server’s IP isn’t blocked by his ACF host.
Don’t mind me.
Answer was found in the docs.
http://www.advancedcustomfields.com/resources/querying-relationship-fields/
Hi, thanks so much for this. Helped a lot! But I need some help here, please.
I want my title to have not only the ACF field value, but also the custom taxonomy I’ve created called “pico”. When I run this code,
function my_acf_update_value( $value, $post_id, $field ) {
$terms = wp_get_post_terms($post_id, 'pico');
$pico = false;
foreach($terms as $term)
{
if($term->parent)
{
$parent = get_term($term->parent, 'pico');
$pico = $term->name;
break;
}
}
//Default to first selected term name if no children were found
$pico = $pico ? $pico : $terms[0]->name;
$new_title = $pico . ' - ' . $value;
$new_slug = sanitize_title( $new_title );
// Update post
$my_post = array(
'ID' => $post_id,
'post_title' => $new_title,
'post_name' => $new_slug,
);
// Update the post into the database
wp_update_post( $my_post );
return $value;
}
add_filter('acf/update_value/name=data_do_boletim', 'my_acf_update_value', 10, 3);
it gives me these error messages:
Notice: Undefined offset: 0 in /Users/Mauricio/Sites/RicoSurf/wp-content/themes/ricosurf/functions.php on line 219
Notice: Trying to get property of non-object in /Users/Mauricio/Sites/RicoSurf/wp-content/themes/ricosurf/functions.php on line 219
Warning: Cannot modify header information – headers already sent by (output started at /Users/Mauricio/Sites/RicoSurf/wp-content/themes/ricosurf/functions.php:219) in /Users/Mauricio/Sites/RicoSurf/wp-includes/pluggable.php on line 1196
But when I go back and see that post, the title is perfect, exactly the way I want.
So I assume the code “is working” just not 100%. Can some one help me find out what’s wrong?
Hi @muckleby
The problem is that fullsize “width” and “height” does not exists in the array.
<?php
// You will get the "full" size image with:
$url = $image['url'];
// Full-size Image Width:
$image['width'];
// Full-size Image Height:
$image['height'];
echo '<img src="'.$image['url'].'" width="'.$image['width'].'" height="'.$image['height'].'" />';
// You can check all available values with:
echo "<pre>";
var_dump($image);
echo "</pre>";
?>
Hope i could help you.
OKAY, I looked even further and got more confused, the ACF field groups page states this on the right hand side:
for version 6.1.8.1
Advanced Custom Fields 4.1.8.1
Changelog
See what’s new in version 4.1.8.1
going to the link on the page goes to here:
Welcome to Advanced Custom Fields 4.1.8.1
Thank you for updating to the latest version!
ACF 4.1.8.1 is more polished and enjoyable than ever before. We hope you like it.What’s New Changelog
Changelog for 4.1.8.1
Select field: Revert choices logic – Learn more
CSS: Revert metabox CSS – Learn more
Core: Fixed save_post conflict with Shopp plugin – Learn more
for version 4.4.1
Advanced Custom Fields 4.4.1
Changelog
See what’s new in version 4.4.1
and going to the link goes to here:
Welcome to Advanced Custom Fields 4.4.1
Thank you for updating to the latest version!
ACF 4.4.1 is more polished and enjoyable than ever before. We hope you like it.What’s New Changelog
Changelog for 4.4.1
Taxonomy field: Added compatibility for upcoming ‘term splitting’ in WP 4.2
Taxonomy field: Major improvement to save/load setting allowing for different values on multiple sub fields
Core: Minor fixes and improvements
so, it looks like the 6.1.8.1 is really 4.1.8.1 and i need to upgrade, but it does not say I need to.
Thanks but it looks like its the query that gets generated thats the problem, could be an issue with the JOIN. I think its gonna have to be recoded/build again
Thanks

i cant see private posts/replys.
would it make a difference if you change query (add relation line)?
'meta_query' => array(
'relation' => 'OR',
array(
and i begin to not understand what dates you like to show & if you have one or more input field or if you use today to check if date should be displayed or not
I tried several “solutions” provided in your FAQ:
– php.ini modification
– .htaccess modification
– Option_name length (Database) => 64 to 128
I still cannot make it work.
The datas are not saved.
Do you have an idea of what it could be?
We’re having the same issue on one of our sites as well. It will allow me to save a post as a draft, but whenever I attempt to publish it from the edit post page, the console log keeps infinitely loading this every 30 seconds or so and not publishing the post.
POST http://********.com/wp-admin/admin-ajax.php
{“wp-refresh-post-lock”:{“new_lock”:”1431706252:5″},”wp-auth-check”:true,”server_time”:1431706252}
The site is running WordPress 4.2.2 and ACF 5.2.5. I reinstalled WP and ACF, just in case something was missing in the recent updates. It’s still not allowing me to publish from the edit post page. The interesting thing is it’s working on a few other sites we manage with the same configuration and plugins.
I disabled the ACF plugin on the site that’s having an issue and it’s allowing me to publish from the edit post page. So the issue is definitely with ACF not playing well with WP in some way.
A workaround is to save the post as a draft and then from the post lists quick edit, change the post status to published. That seems to be working.
Any help to resolve this issue would be great. Thanks!
It’s worth noting @sergi0fores, since posting this question I’ve developed a plugin that does just that, integrates ACF data into WP-API automatically.
You can download the plugin here: https://wordpress.org/plugins/acf-to-wp-api/
I use this every day with AngularJS, and it makes for a great setup.
This got answered on another forum faster and I thought I’d share the answer for anyone having the same problem or frustration trying to only repeat certain section of a shortcode in a repeater field:
You need to generate the shortcode within the loop, and then execute it afterwards:
if ( have_rows( 'homepage_slider' ) ) {
$shortcode = '[ux_slider timer="4500" arrows="true" bullets="true" auto_slide="true" nav_color="light"]';
while ( have_rows('homepage_slider') ) {
the_row();
$shortcode .=
'[ux_banner bg=" ' . get_sub_field( 'slider_image' ) . ' " height="600px" text_color="light" text_align="center" text_pos="center" text_width="70%" parallax_text="0" parallax="3" effect="sparkle"]
<h1>' . get_sub_field( 'slider_slide_title' ) . '</h1>
<h4 class="thin-font">' . get_sub_field( 'slider_sub_title' ) . '</h4>
[/ux_banner]';
}
$shortcode .= '[/ux_slider]';
echo do_shortcode( $shortcode );
}

Sure, no problem! Ok, since we’re outside the loop, first you just want to grab the global query that is being passed to your template files and assign the post data to a variable.
Then you just add the post ID as a second parameter to get_field(). Here’s what it should look like:
global $wp_query;
$post = $wp_query->post;
<?php if (get_field('options_posts', $post->ID) == "para_1") {
echo '<link rel="stylesheet" id="parallax-css" href="#" type="text/css" media="all" />' ;
} else if (get_field('options_posts', $post->ID) == "para_2") {
echo '<link rel="stylesheet" id="parallax2-css" href="#" type="text/css" media="all" />' ;
} ?>
That should take care of it for you, but if you have any trouble, let me know.
Confirmed as well. Posts are not updating due to a jquery error on post save.
Hi @dkeeling,
It is an option someone can set on a post by post basis and should only be needed for the single view of that individual post.
I am not quite sure how to pass the post id dynamically to the get_field() would you mind showing me how to do this.
Thank you in advance.
Hi! thanks for the answer. I tryied some more but with poor results, it seems wp documentation on users and query is a bit overlooked…
Where can I find someone to hire some help? Do you have any ideas?
I’m from Italy and I don’t know anyone capable of doing that…
Thanks again
Andrea
also you can check this question for more details
Thanks James,
wordpress declares hhvm compatibility since v3.9. I had to ask since, so far, we have been using great and free simple fields plugin which unfortunatelly cannot quite catch up to speed we are looking for.
I will do a test drive of ACF and will let you know of results. I was just asking if you guys have played with hhvm.

Thanks mate. I’ll get a few other opinions on this before considering changing back the required validation.
I still think a required checkbox should contain a value. “” or unselected or unchecked is considered as not a value (text field, select field, etc), so this would be consistent with the new validation logic.
I highly encourage you to upgrade to 5.2.5 and make your checkbox un-required.
Looking forward to hearing back about this from other users.
Cheers
E
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.