i use a repeater field for the user meta fields:
these are my fields in acf:
https://www.dropbox.com/s/04mjekcfljre0sx/Screenshot%202014-08-26%2016.29.02.png?dl=0
here i inserted some stuff in user-edit.php:
https://www.dropbox.com/s/0yixma1qb03rpgu/Screenshot%202014-08-26%2016.29.26.png?dl=0
here is the db view from wp_usermeta:
https://www.dropbox.com/s/eqgjvz49oyidgyq/Screenshot%202014-08-26%2016.29.45.png?dl=0
now i want to get these values within the user account:
<?php $historie = get_field( 'historie',$current_user->ID );?>
<pre><?php print_r($historie); ?></pre>
“historie” is the name of the repeater field.
i get an array but only with the last entry!?
Array
(
[0] => Array
(
[aktion] => beworben
[produkt] => 169
)
)
where are the other entries??
found the answer here:
http://www.advancedcustomfields.com/resources/how-to-get-values-from-a-user/
it has to be
<?php $historie = get_field( 'historie','user_'.$current_user->ID );?>
Hi @nicmare
Yes, and thanks for posting the solution!
Cheers
E