Skip to:
Content
Pages
Categories
Search
Top
Bottom

ACF field in js-templates


  • puresaian
    Participant

    @puresaian

    Hi,

    I created an ACF field in the users profile.

    I will keep displaying this field in the list of users on the “send-invites” group page which is generated in “buddypress/common/js-templates/index”.

    Do you know if it is possible to have a get_field(‘field_name’) there?
    I can’t figured it out.

    THANKS

Viewing 1 replies (of 1 total)

  • puresaian
    Participant

    @puresaian

    I found the problem, I can’t get the correct user id, there is a character problem :

    <?php 
    	$user_id = '{{ data.id }}';
    	var_dump($user_id);
    ?>
    

    Result : string(13) “14”

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar