Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Pascal Birchler

    (@swissspidy)

    Hey there

    Good question! I actually haven’t thought of this and I’m not sure if it should be done.

    Let me look into it to see how feasible it is and get back to you.

    Thread Starter John Plastow II

    (@j2trumpet)

    Thanks! From what I’ve read, it looks like WP is auto-changing the “embed” slug to “embed-2” so that it can use “embed” in the URLs used to create the embeds on other sites. My thinking is if someone is using this plugin to disable the embedding capabilities of their posts, then the auto-changing is unnecessary and, in my case, hindering.

    @j2trumpet,

    AFAIK, you will not be able to get a page that has the URL “https://example.com/embed” because “embed” is a Reserved Term.

    In this case, the term “embed” already exists because it has been created by WP Core so when you try to create a Page with the slug “embed” the slug sanitizer sees that there is already a term with that string and it appends the “-2” to make sure that the resulting permalink is unique. It will do this with any non-unique slug, not just reserved terms.

    Perhaps you might consider a page called “embeds”? You could also perhaps create Page called “emb” and then a child of that called “ed”. Then you could have an URL like “https://example.com/emb/ed”

    Plugin Author Pascal Birchler

    (@swissspidy)

    @webmaster808 That is correct. The suggestion was to remove this behaviour to allow pages with the slug “embed”. This would actually work (even when disabling the plugin again) and it’s on my to-be-considered list.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable post slug change’ is closed to new replies.