Closed Hube2 closed 8 years ago
This can probably use acf_get_options_page() and/or acf_get_options_pages(). This may also allow getting the correct post ID even for pages not created with this plugin.
There are no filters available in ACF to filter the $post_id. So I don't see any automatic way to convert an options page slug into the correct post ID. This will need to use a new function to get the correct post ID for an options page.
Create function that will allow getting fields based on the options page slug. Not sure of the best way to handle this, need to think about it. Here are the choices that I see. 1) create a function to get the post id based on the page slug 2) re-create acf function that will use the page slug in place of $post_id 3) both, or some combination of the two