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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users