In Wordpress, I added fields for Spanish Content and Spanish Title in posts. I made a filter to switch the content when Spanish is selected. (See below.) This works in the post but is writing every title in the navigation with the current page title. How could this be re-written to avoid this problem?
$span='<p><em>Spanish translation is not available.</em></p>'.$content;