• Resolved rohit131191

    (@rohit131191)


    Hello All,

    After user register, i want to show his phone number on home page.
    Is there any short code i can show his phone number on the home page ?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @rohit131191,

    Sorry but that is not possible to do with this plugin. As per the current version of the plugin, showing users information on any page except on the user’s dashboard is not possible to do.
    Maybe we will introduce this feature later. We will make sure to let you know once the feature is developed.

    Let me know if you have any other questions and I will get back to you.
    Regards!

    You could just create your own shortcode to do it:

    
    // Add Shortcode
    function dje_meta( $atts ) {
    
        // Attributes
    	$atts = shortcode_atts(
    		array(
    			'meta_key' => 'display_name',
    			'id' => '1',
    			'type' => 'user',
    		),
    		$atts,
    		'show_meta'
    	);
    
    	if($atts['type'] == 'user') {
    	    $output = get_user_meta( $atts['id'], $atts['meta_key'], true );
    	}
    	if($atts['type'] == 'post') {
    	    $output = get_post_meta( $atts['id'], $atts['meta_key'], true );
    	}
    
    	return $output;
    
    }
    add_shortcode( 'show_meta', 'dje_meta' );
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How can i show value of registered user’ is closed to new replies.