Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Option Values Not Appearing #184
Perhaps I am doing something wrong, but when trying to view option page field values, the response returned is empty.
WP Version: 4.8.2
I have an ACF Options page called "Sitewide Options" and it appears the ID is 148. When I use this ID to try get the fields using
Any thoughts? Am I using the wrong ID?
If you use that snippet:
The endpoint is:
But if you register this way:
acf_add_options_page( array( 'page_title' => 'Theme General Settings', 'menu_title' => 'Theme Settings', 'menu_slug' => 'theme-general-settings', 'capability' => 'edit_posts', 'redirect' => false, 'post_id' => 'theme-general-settings' ) );
Your endpoint is:
acf_add_options_page( array( ... 'post_id' => 'theme-general-settings' ... ) );
The result is:
Hello and thank you for this great plugin.
Here is my issue:
Do I miss anything?
WP Version: 4.9.5
Hi @airesvsg , I'm also getting an empty array.
ACF Field JSON (Gist)
Any other insights? Thanks