Home › Forums › General Issues › ACF Relationship Type Issue › Reply To: ACF Relationship Type Issue
There is no loop in the code that you provided. What you provided only determines that the modal should appear on the current page that is being viewed.
....
in_array($id, $spm_display_ids)
...
the current page $id
is in the array of pages that it should be shown on $spm_display_ids
If this is true then this line is run
@include('specials-modal')
Exactly what is shown is determined by whatever that includes.
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.