• Resolved arghknork

    (@arghknork)


    I am converting a Drupal site to WordPress 2.7. I have my permalinks set to custom: %postname% and despite all the documentation it is using underscores in the post name instead of dashes. My old Drupal used dashes. I want WordPress to use dashes as well because that will allow me to set the permalink to /content/%postname% and my URLs will end up not changing (much) from the old site to the new. This will save me a lot of reindexing as most of my final URLs will remain the same.

    Is there a setting somewhere that I’m missing to change the %postname% to use hyphens instead of underscores?

    Thanks in advance to the help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • edit the post slug and change the _ to a – ?

    Thread Starter arghknork

    (@arghknork)

    But I have to do that indiviually on every post don’t I? I have hundreds of posts I migrated from Drupal to WP and that will take forever. I’m looking for a way to do them all at once.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Edit the database directly then, and modify the postname’s in there.

    update wp_posts set post_name = replace(post_name,'_','-');

    Thread Starter arghknork

    (@arghknork)

    Cool. Thanks. That I can do.

    Cathy Mitchell

    (@multitalentedmommy)

    Thanks Otto! I needed this too! ??

    Edit the database directly then, and modify the postname’s in there.

    update wp_posts set post_name = replace(post_name,’_’,’-‘);

    Which database should be edited, may I ask for details please?

    Oh I see, it was meant to change the database entries, I guess…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Permalink %postname% uses underscore – want hyphens’ is closed to new replies.