Code: {if location}{location_level2}{/if} does now work in title andman menu. How to fix please?

{if location}{location_level2}{/if} - Doesn't work - Error for Title and Main menus.

code shows in title not location.