Home › Forums › General Issues › Want Page ID in post_id Field › Reply To: Want Page ID in post_id Field
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:
https://github.com/jonathan-dejong/ACF-Pages-by-Template
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!
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.