Support

Account

Home Forums General Issues ACF repeater field for WP Courseware

Unread

ACF repeater field for WP Courseware

  • Can anyone help me achieve this:
    https://stackoverflow.com/questions/43287702/a-complicated-query-combining-a-wp-courseware-function-acf-repeater-fields-and?noredirect=1&lq=1

    In short, have a Options page with a repeater field that associates the ID of a course page. I’m not sure how she handles the ACF bit. I have an option page with a repeater field. I fill in the ID of the course but it doesn’t output anything (not even with var dump). Any tips?

    So the loops within loops need to first determine what courses the current user has access to, get those course IDs, loop the ACF options repeater to find the pages associated with those course IDs, then of those pages loop to find out which one (there is only one per course) uses the course home page template. This last loop I discovered needs to be a WP_Query loop as that’s the only way to query for a WordPress template.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.