Hi there,
I’ve searched the forum but can’t find anything for this - I’d like to set a link for each member’s display name in my list of members, to their individual profiles on my profile page.
I’ve seen that I can copy and edit the member-list.php (see https://s2member.com/kb-article/using-a-custom-template-for-s2member-list/ ) and save it in my child theme.
I’ve found the area I need to edit within this file, but can’t find any ‘empty values’ in it as described here: “link_display_name Optional, defaults to “” (an empty string; i.e., no link)” as instructed in this article: https://s2member.com/kb-article/s2member-list-shortcode-documentation/.
So I’m not quite sure where to add my link in for this. The code segment I have is this:
<?php if($attr['show_display_name'] && $_user->display_name): ?><?php if(($_display_name_link = c_ws_plugin__s2member_pro_sc_member_list_in::parse_link_replacement_codes($attr['link_display_name'], $_user))): ?> ><?php echo esc_html($_user->display_name); ?> <?php else: echo esc_html($_user->display_name); endif; ?><?php endif; ?>
Can anyone help me with this?
Many thanks,
j