Home / Archive / MemberPress: Add Author Bio Shortcode
Duplicate Snippet

Embed Snippet on Your Site

MemberPress: Add Author Bio Shortcode

Place the [mpcs-author-bio] shortcode in a post, page, or course. The shortcode will display the biographical info of the post, page, or course author from their WordPress profile.

Code Preview
php
<?php
function mpcs_author_bio_shortcode() {
	return nl2br( get_the_author_meta( 'description' ) );
};
add_shortcode( 'mpcs-author-bio', 'mpcs_author_bio_shortcode' );

Comments

Add a Comment