Thanks for the suggestion, I got it working with the multiple arrays. But I do see how this could cause performance issues and will look at the bidirectional relationship field. Thanks your help!
ACF Support recommended the WP All Import plugin:
http://www.wpallimport.com/advanced-custom-fields/
But given the $200 cost for something I would use once, I didn’t even bother to investigate if it would actually import custom fields for terms. I realized I could manually enter in the data in about 2 hours, so I just went ahead and did that.
Has this issue been fixed? I’ve noticed it when attaching images within a repeater on a post as well.
http://support.advancedcustomfields.com/forums/topic/uploaded-to-information-in-media-library/
The repeater field did work, though I ended up hacking the image.php in the plugin so that it would display the original title & caption of the image below the thumbnail. Then I added a “Title” and “Caption” field to the repeater and coded the template to use the title or caption from the repeater if it was filled out, otherwise to use the image’s default title/caption.
Was there a way I could have displayed the image’s original title & caption in the WP edit screen without hacking the plugin?
The repeater field might do the trick – then I would code it to use the image’s meta data unless the custom caption/title fields were filled out in the repeater. Thanks for the suggestion.
I think I figured this out. Here’s the code I used to get the URL, credit and description field from the gallery field “photos”:
$photosValues = get_post_meta( $post->ID, 'photos');
foreach ( $photosValues as $photoItem) {
foreach ( $photoItem as $photoID) {
$thePhoto = get_post($photoID);
$photoURL = wp_get_attachment_url($photoID); // gets photo URL
$photoCredit = get_field('credit', $photoID); // gets ACF credit field
$photoDesc = $thePhoto->post_content; // gets description field
echo $photoURL;
echo $photoCredit;
echo $photoDesc;
}
}
That’s pretty funny. I’m in Raleigh too!
I’m noticing the same issue.
@mkeys – Thank you very much for the patch. The patch is nice to have, but like you would prefer an update to the plugin.
I’m also seeing this issue in WordPress 3.9.1 with ACF 4.3.8 and ACF Repeater 1.1.1
Hoping for a fix soon!
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.