Home › Forums › Add-ons › Repeater Field › Sort repeater field by date sub field › Reply To: Sort repeater field by date sub field
Hi @moofin
Could you please tell me how did you get the other subfields? Could you please share the code?
Keep in mind that with the get_field() function instead of have_rows() function, you need to get the subfields using the field name as the array key like this:
foreach( $repeater as $row ){
echo $row['subfield_name'];
}
Also, please make sure that you’ve set an empty array for your $column_id
variable like this:
$column_id = array();
I hope this helps.
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.