No worries dude, glad to help.
Well i suppose this method is quite alright if you use a specific page template for those pages to make sure the query is not run on uhnecessery pages..
One thing which would make it easier for you would be if you could have a select on the products which is automatically filled with the pages from that specific page template. This does not exist in ACF atm from what I know..
IF you’re by any chance using ACF v3 I have created such a field which you can find here:
Unfortunately it doesnt work on v4 but you’re free to fork it and convert it to v4 if you like 🙂 Atleast you’ll have a lot of work done.
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!
© 2023 Advanced Custom Fields.