Output ACF repeater on user’s profile page
-
Hi,
I use ACF Pro repeater field to add custom fields to the user profile page. Now I’d like to output that data on the frontend (using a shortcode). However I cannot make this happen. When I place the repeater field on a page it shows up nicely – but not on the user’s page (location: user form > equal > add/edit). This is what I have:function acf_repeater() { um_fetch_user( get_current_user_id() ); { if( have_rows('repeater-name') ): while ( have_rows('repeater-name') ) : the_row(); the_sub_field('sub-field-name'); endwhile; else : endif; } } add_shortcode('acf_repeater_shortcode', 'acf_repeater');
Any tips?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Output ACF repeater on user’s profile page’ is closed to new replies.