Title: Permalinks error using post name?
Last modified: November 25, 2016

---

# Permalinks error using post name?

 *  [dslippy](https://wordpress.org/support/users/dslippy/)
 * (@dslippy)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/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: [http://www.swarb.co.uk/in-re-horsley-weight-ltd-ca-1892](http://www.swarb.co.uk/in-re-horsley-weight-ltd-ca-1892)
   but instead WordPress creates the post under [http://www.swarb.co.uk/in-re-horsley-ca-1892](http://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](https://wordpress.org/support/users/dslippy/)
 * (@dslippy)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/permalinks-error-using-post-name/#post-8482785)
 * 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](https://wordpress.org/support/users/dslippy/)
 * (@dslippy)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/permalinks-error-using-post-name/#post-8515474)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [dslippy](https://wordpress.org/support/users/dslippy/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/permalinks-error-using-post-name/#post-8515474)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
