Shortcode: [user_card]
Beginnings of a user_card shortcode that would output a formatted ‘vcard’-style profile for a user – just give the shortcode a registered user’s username.
// Add Shortcode function user_card_shortcode( $atts ) { // Attributes $atts = shortcode_atts( array( 'id' => 'robbutz', 'style' => 'card', 'background' => '#f9f9f9', ), $atts, 'user_card' ); } add_shortcode( 'user_card', 'user_card_shortcode' );