0

Recently I noticed that if I had post tags that are the same as a page name, wordpress is updating the tag to the page title rather than the slug entered. So in this case if I give wordpress the tag 'adventure-training' it is updated to 'Adventure Training' similar to the name of a page on the site.

How do I stop that from happening.

Any ideas?

Marvellous

6
  • You got any plugins installed? What version you running? I just tried this on a vanilla install of 3.1 and was unable to replicate the problem. Mar 12, 2011 at 14:38
  • No plugin that has anything to do with tags or SEO also 3.1 Mar 12, 2011 at 14:42
  • 1
    I honestly can't replicate this. Regardless if a plugin is to do with SEO or tags, disable ALL of them, then confirm the issue still persists. Mar 12, 2011 at 14:54
  • confirmed still happening. More inexplicably this only happens with 'Adventure-Training' the next tag is the same as the page Master Scuba Diver, yet displays perfectly normally as 'master-scuba-diver' What the hell is going on! Mar 12, 2011 at 15:19
  • Do you have a term with the same name in a different taxonomy? Or as a category? Mar 12, 2011 at 15:24

2 Answers 2

1

Fixed by editing the post tag itself inside the tags section of the admin page. Thanks for all help.

-1

Try putting this in your functions.php:

remove_filter('template_redirect','redirect_canonical');

I found when writing another function that it was "helpfully" redirecting urls like that for me. This will disable that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.