I’ve got a dropdown menu with different curriculum subjects. Each curriculum has a flyout with a link to Student Workbook PDF accessible in /wp-content/ files.
I’ve got the correct PDF links to show up, but the problem is that the looper is looping through all the PDFs for each flyout instead of just the one related to the subject (see below):
I’ve set for each parent page (Algebra, Data Science, etc.) a ACF field called Common Course URL that sets a Curriculum Materials post URL that the page should be associated with. For example, the Algebra page has the Common Course URL /algebra_pyret
This URL is brought into the Workbook PDF URL see below:
https://bootstrapfostg.wpenginepowered.com/wp-content/themes/pro-child/static-resources/fall-2025/en-us/courses/algebra-pyret/workbook/workbook.pdf
How can I connect this flyout to each respective PDF link? Ex: Algebra > Student Workbook link?
I’m adding a secure note with access to the site here. You’ll find the dropdown named Curriculum Dropdown.