Hello,
I’m working with nested loopers and ACF field repeaters to create a schedule page of circus training classes. I can create tables for various class types (e.g. beginner, advanced) easily enough using query builders and dynamic content looper providers but I’d also like to create a weekly schedule that:
- Displays classes for each week day (e.g. Monday); and
- Orders the classes chronologically for each respective day.
To get only Monday classes to display I’ve applied conditions to the DIV containing the Dynamic Content Looper Provider {{dc:acf:post_field field=“times”}} which is also set as a Looper Consumer. The conditions on the nested DIV element are:
Provider Output is not empty
and
{{dc:looper:field key="day_of_week"}} is Monday
Monday classes are displaying however there’s also empty rows happening in the Looper. I’ve trawled through numerous threads about this issue but can’t pinpoint where the Monday schedule setup is wrong. Is there something I’ve missed here?
The next issue is how to get the Monday classes to display chronologically.
I’ve added query string to the top-level Looper Provider (see below) to attempt to get the outputs to filter by the ACF repeater’s ‘start_time’ field but realise the query may not be quite right.
post_type=class&post_status=publish&ignore_sticky_posts=1&posts_per_page=-1&meta_key={{dc:looper:field key="start_time"}}&meta_type=TIME&orderby=meta_value_num&order=asc
Is filtering on a top-level looper provider using a repeater that’s on the next nested (dynamic content) provider possible?
I’ll include a secure note with the site info. Any advice would be greatly appreciated.
Thanks,
Rachel