BuddyDev

Search

[Resolved] Remove Link (not text) from Creator Name

  • Participant
    Level: Enlightened
    Posts: 42
    Shannon Belletti on #29091

    I’m editing the child Shortcodes > gallery-list.php

    I want to display the gallery creator’s name but I don’t want a hyperlink around it. How can I accomplish this? Is there an alternative to MPP_GALLERY_CREATOR_LINK to show their display name and not a link?

    <?php if ( $show_creator ) : ?>
    <div class=”mpp-gallery-creator-link mpp-shortcode-gallery-creator-link”>
    <?php echo $before_creator; ?><?php mpp_gallery_creator_link(); ?><?php echo $after_creator; ?>
    </div>

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #29092

    Hi Shannon,
    You may use

    
    <?php  echo mpp_get_user_display_name( mpp_get_gallery_creator_id() );?>
    
    

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 42
    Shannon Belletti on #29093

    Perfect, thank you!

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #29107

    You are welcome.

The topic ‘ [Resolved] Remove Link (not text) from Creator Name’ is closed to new replies.

This topic is: resolved