Rtmedia_author_name


#1

Hi, i would like to show rtmedia author name with link after click loadmore button. function custom_rtmedia_author_name() { global $rtmedia_backbone; if ( $rtmedia_backbone[ ‘backbone’ ] ){ echo ‘<%= author %>’; } else { return stripslashes( htmlentities( rtmedia_author_name( false ) ) ); } }

function rtmedia_backbone_template_filter_author_name( $media_array ){
        $author_name = get_the_author_meta( 'display_name', $media_array->media_author );
        $media_array->author = $author_name;
        return $media_array;
    }
    add_filter( 'rtmedia_media_array_backbone', 'rtmedia_backbone_template_filter_author_name', 10, 1 );

I have used this code but it’s showing only author name. how could i show author name and link inside of rtmedia shortcode image?

if anyone know it. kindly help me. please.


#2