This is probably a big ask, but I thought I’d post the query on the off chance there’s a relatively simple solution.
On one of our sites, every news story title is prefixed with “ED2012 News” – for this site it’s important we clearly mark what year each bit of content relates to, and this is done simply by manually adding the prefix to post title field.
While this is all good on the site, ideally when the story appears in Google News, it would be good if this prefix could be removed from the headline Google publishes.
As it’s always the same prefix on all news stories, I wondered if there was a line of PHP that could be added to the Sitemap generator that would simply delete that prefix when creating the ‘title’ field in the XML from the ‘title’ field on the WordPress post.
Anyway – as I say – I realise this is a very specific request for my site, but if there is a simple bit of PHP I could add to the sitemap generator to make it happen, and if anyone just happen to know it (!), well, that would be great.
Thanks for all your help.
- The topic ‘[Plugin: Google News Sitemap Generator] Removing reoccuring words in Title field’ is closed to new replies.