Home › Forums › ACF PRO › Getting just the url that was entered into an oEmbed field inside a variable › Reply To: Getting just the url that was entered into an oEmbed field inside a variable
Hi @AKA Digital
Thanks for the comment, the
get_sub_field (or any sub field functions) do not contain a parameter for
$format_value, so the value will all ways be formatted.
To get the un-formatted (raw) sub field data, you will need to load the repeater field without formatting like so:
$repeater = get_field('videos', false, false);
If you place this before your
have_rows call, this should update the cache with a value that is not formatted.
I agree that this is a bug and should be fixed. I’ll have a look at finding a solution for this later today
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!
© 2022 Advanced Custom Fields.