• Resolved skypr1son

    (@skypr1son)


    Hello,
    I am using the ultimate member nav menu shortcodes (i.e. {user_avatar_small} and {user_avatar_small} {username} ) to create a new WP menu and am using it for one of my customizations which displays a nav menu using the wp_nav_menu to display a menu on the admin side for a custom user role.

    The customization was working fine at first but in some of the recent updates of the plugin, it has stopped working and I see the raw shortcode text {user_avatar_small} itself in the menu.

    On debugging a little on my own, I found that the callback function responsible for replacing the shortcode text with the appropriate image and other usermeta is not being executed for my custom user role altough the add filter code is executed.

    For the time being I am using the following code to handle the situation
    echo UM()->shortcodes()->convert_user_tags( "{user_avatar_small}" );

    But it would be great if you could help me resolve the issue so my existing customization works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Aswin Giri

    (@aswingiri)

    Hello @skypr1son

    If you have added any custom codes using action or filter hook, I suggest you disable them and see if that changes anything.

    Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hey there!

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread by changing the Topic Status to ‘Not Resolved’ if any other questions come up and we’d be happy to help. ??

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Nav menu shortcodes not rendered’ is closed to new replies.