Home › Forums › Add-ons › Options Page › WP_Query for Options page ? › Reply To: WP_Query for Options page ?
You cannot. Options pages are not stored in any way that associates them with anything that is queryable as a “page” or “post”.
You can use the 'post_id'
option when adding an options page to associate the fields of the options page with a specific post ID, but in order to do what you want you’d probably need to have some type of custom post type or something to use, although you might be able to get away with using any existing post ID as long as that post is never deleted.
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.