Google News Sitemap Generator
Removing reoccuring words in Title field (1 post)

  1. chrisunlimited
    Posted 3 years ago #

    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google News Sitemap Generator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by chrisunlimited
  • This topic is not resolved
  • WordPress version: 3.3.2


No tags yet.