Home › Forums › Front-end Issues › Repeater values missing from query result when sorting by custom field. › Reply To: Repeater values missing from query result when sorting by custom field.
Hi there John!
The loop is pretty much standard:
if ( $posts ) {
foreach ( $posts as $post ) :
get_template_part( 'includes/loop-job', get_post_type());
endforeach;
wp_reset_postdata();
}
Right? So at least I’m not missing something totally obvious. 😀 Thanks for that already! 🙂 I kinda hoped that there would be some kind of thing that everybody knew about except for me, but my code NOT being the obvious problem at least tells me I’m not a total idiot. 😉
It might of course be some other plugin causing this problem.
Now I could start and hunt down the culprit, but I just thought of a workaround that should do the trick as well, what do you think:
The Problem is during sorting in a query and only hits the Address-Repeater section. I could of course hook into saving an article and THERE turn the cities into a string and save THAT in a normal (non-repeater)-field… Those aren’t affected by the glitch or whatever it is…
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.