Adding Text after Post Title based on Category using IF Condition – But not for menu items
The the_title() filter is applied to the titles of posts and pages in menu items, so without any conditions any changes you make will also apply there. It’s worth breaking down your conditions to see why your change is still applying to menus: is_single() Are we viewing a single post? We may be, but nav … Read more