Permalinks error using post name?
-
My site at swarb.co.uk uses the post name for the permalink.
This is necessary because I have to be able to predict the url before the post comes online. I create the post externally and then import many at a time.
The post names include (amongst other things) ampersands. I know that these must be encoded as & on import.
Unfortunately it is going wrong.
One example is
In re Horsley & Weight Ltd; CA 1892
it should translate to a link:
https://www.swarb.co.uk/in-re-horsley-weight-ltd-ca-1892
but instead WordPress creates the post under
https://www.swarb.co.uk/in-re-horsley-ca-1892I other words whatever regular expression is being used to delete the encoded/escaped ampersand appears to delete from the post title everything from the & to the last semi-colon in this case -‘& weight ltd;’ instead of ‘&’
This appears to happen consistently, and, sadly it poses a real problem for me. If it is a mistake, it should perhaps be corrected. If, somehow it is not, I have real work to do working around it.
I have not seen this reported elsewhere.
- The topic ‘Permalinks error using post name?’ is closed to new replies.