[Resolved] Add user contact methods to Dynamic Data

Home Forums Support [Resolved] Add user contact methods to Dynamic Data

Home Forums Support Add user contact methods to Dynamic Data

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2361522
    Mallory

    Hello guys,

    I added two new fields to authors :

    add_filter( 'user_contactmethods', 'modify_user_contact_methods' );
    
    function modify_user_contact_methods( $methods ) {
    
    	// Add user contact methods
    	$methods['linkedin']   = __( 'LinkedIn'   );
    	$methods['title'] = __( 'Job Title' );
    
    	return $methods;
    }

    I would like to use those fields in Dynamic Data, any tips ?

    https://prnt.sc/mEuYf7OL7nxS
    https://prnt.sc/1C_ohllmyJcV

    #2361946
    Ying
    Staff
    Customer Support

    Hi Mallory,

    Can you try the method introduced in this video?
    https://youtu.be/HMhUo91RjsE?t=298

    #2362671
    Mallory

    I should have thought of it before, it’s perfect!

    #2363143
    Ying
    Staff
    Customer Support

    Nice! 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.