Home › Forums › ACF PRO › Can't retrieve repeater values from options page › Reply To: Can't retrieve repeater values from options page
I think you are wrong. According to the documentation for the acf_add_options_page() the post ID can also be any string – only the default ist 'options'
.
$args = array(
...
/* (int|string) The '$post_id' to save/load data to/from. Can be set to a numeric post ID (123), or a string ('user_2').
Defaults to 'options'. Added in v5.2.7 */
'post_id' => 'options',
...
)
Since I also get the values in other situations (see the 2nd example where I get all color values for the radio field or the 3rd example where I get the value for the other field from the same options page), the code can not be so wrong.
Since the 'post-id'
was introduced in v5.2.7 I always use this.
Sorry, but this is not the solution…
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!
📣 “ACF Chat Fridays”
— Advanced Custom Fields (@wp_acf) January 31, 2023
The ACF team holds their first open office hours this Friday! Come and talk ACF, and ask questions about building sites with the plugin.
We’d love to see you there!
📆 Friday 3rd Feb - 3pm UTC
👉 Register here - https://t.co/3UtvQbE4CU pic.twitter.com/oTwW9K1XQ0
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.