Dette innstikket er ikkje testa med dei tre siste utgåvene av WordPress. Det kan henda det ikkje blir vedlikehalde lenger, og kan ha problem med nyare versjonar av WordPress.

Rewrite slug before publishing a post

Skildring

Is a known (SEO) issue that if You save a draft post without title, the post_name or slug is immediately saved with the post id.

Later, when You finish your post and put some title, the slug doesn’t change; neither also when your slug preference is %postname%.

So, what if we include the following function to rewrite the slug before publishing the post?

Installasjon

  1. Upload the entire rewrite-slug-before-publishing-a-post folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the «Plugins» menu in WordPress.

Omtalar

Les alle 3 omtalar

Bidragsytarar og utviklarar

“Rewrite slug before publishing a post” is open source software. The following people have contributed to this plugin.

Contributors

Endringslogg

1.0

  • Initial version