Support » Plugin: ACF-VC Integrator » Users field

  • Trying to implement the users function of ACF, as I want to create users for our team members, and then output them on specific pages after I choose them in ACF.

    Regardless of the return format I use for the Users field (User Array, User Object, User ID), it only returns the user ID in a li field. I would like to be able to output the user image, name, and bio.

    Is this possible via this plugin and the user field?

Viewing 1 replies (of 1 total)
  • Plugin Author Frederik Rosendahl-Kaa

    (@frederik-rosendahl-kaa)

    Hi @nadpllc,

    Yes this plugin works with the user field.
    However, it only retrieves the name by default, this can be changed if you use a filter hook.
    Like this example

    add_filter( 'acf_vc_user_fields', 'acfvc_user_field', 10, 3 );
    function acfvc_user_field ( $output, $field, $post_id ) {
    	return $output;
    }
    

    Best regards
    Frederik

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