I have a number of sports sites with hundreds of thousands of existing news posts. The site also has a custom post type for team and a custom post type for person. I wish to be able to somehow automatically find team names and player names in news post body and hyperlink them to the correct team / player post.
The post names exist with exact player and team names. For example
Lionel Messi << Player post Manchester United << Team post Lionel Messi snubs Manchester United and joins Wolverhampton Wanderers << news post
What approach should I take here?
Bonus karma for this additional consideration. In Drupal the post text filtering actions can be cached against the text filter so that the calculations on the body wouldn't have to be done on every page load. Are there similar considerations in Wordpress to make this relatively efficient?.