gantry / gantry5

:rocket: Next Generation Template / Theme Framework
http://gantry.org
1.04k stars 204 forks source link

UltimateMember Short Tags in Menu #2648

Open chris26237 opened 4 years ago

chris26237 commented 4 years ago

I am using Ultimate Member on my site and they have instructions on how to use short tags to the WP Menu. However, when I add these short tags ({first_name} {last_name}) into a menu item, they are not carried over through my Calisto theme. Only the labels are visible, not the data within them. I checked the user profile to ensure that there is a first name and last name for the user - that's evident.

See this thread in the RocketTheme Forum: https://rockettheme.com/forum/wordpress-theme-callisto/284187-ultimatemember-short-tags-in-menu?limitstart=0#1426851

Hmm.....more background..... When I switch back to using the WP "Twenty Nineteen" theme, the elements are rendered as expected. But, reverting to Gantry/RocketTheme, the problem appears. So, the menu is actually in WP. I am not manipulating the menu in Gantry/RocketTheme.

The UM team pointed me to this code for your reference:

Please tell to Rocket Theme developers to check the code in the link: https://github.com/ultimatemember/ultimatemember/blob/master/includes/core/um-filters-navmenu.php#L12-L24

That’s how UM append the user profile names with short tags.

Hope that helps.

mahagr commented 4 years ago

I'm afraid that this issue may be caused because of the menus are not being generated by WP, but custom code in Gantry itself -- to maintain compatibility with the other CMSes.

We are currently testing our WP menu improvements in Gantry 5.5, so I will assign this issue to that release.

chris26237 commented 3 years ago

FYI....this is still an issue. 5.4.37