Home › Forums › Add-ons › Gallery Field › WPML and Gallery addon problem › Reply To: WPML and Gallery addon problem
Alright guys, so i have a little thing i found and i think it’s an issue with some wpml settings (this is probably why @elliot can’t replicate), but i’m still trying to figure which one.
So, on gallery.php, on format_value method, $value variable contains correct IDs:
Array ( [0] => 245 [1] => 243 [2] => 241 [3] => 239 [4] => 237 [5] => 235 )
However!
// find attachments (DISTINCT POSTS)
$attachments = get_posts(array(
'post__in' => $value,
....
));
Is returning completelly different ids, disregarding post__in option: 235, 237 and so on. Then, when trying to apply the custom ordering, each key is not found (obviously!). This is always happening, no matter how suppress_filters is set.
Still digin, maybe i find something more. Just wanted to add an update here, maybe someone have a better idea 🙂
( also i decided to close this, since is a duplicate: http://support.advancedcustomfields.com/forums/topic/acf-gallery-vs-wpml/ )
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.