• 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-1892

    I 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dslippy

    (@dslippy)

    Retract this a bit.

    I have tried this again with only variable results – sometimes it goes wrong and sometimes not. There is definitely something iffy, but the above does not quite get it right.

    Thread Starter dslippy

    (@dslippy)

    Again, then.

    I have repeated the exercise with simple posts, posting the name, and get consistent errors when I use just the wordpress software itself.

    Where the post title includes an unescaped ampersand followed by a later semicolon, the permalink created excludes all text between the said two characters.

    Any offers?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalinks error using post name?’ is closed to new replies.