Hey all, I'm really stuck on something basic. I'm trying to set this custom url structure in Wordpress... www.mysite.com/2008/08/my_latest_blog_post.html But I'm lost on how to achieve the underscores. I know it's a variation of this /%year%/%monthnum%/%day%/%postname%.html? How do I write the %postname% so I know the post will be separated by underscores? I'm just going around in circles with the info I've been finding. Can anyone help me out on this? Thanks in advance.
%postname% just add above, wordpress will add underscore by itself when there are spaces between the words
Thanks again for the info, but I'm back to square one. When I use %postname%, it's putting in dashes. I've been sitting at the front gates of WP after the install for two nights. I'm good to go on all other aspects. Can anyone help me achieve this url structure so I can move forward... I just need the underscores instead of dashes... www.mysite.com/2008/08/my_latest_blog_post.html Is it something I need to hard code somewhere? Or is it just a different %command%? Thanks again... any help at all would be greatly appreciated.
There isn't a straightforward solution to this, because nobody at WordPress could have guessed that you'd need underscores instead of en-dashes. Speaking of which, why do you need underscores instead of en-dashes? I hope nobody's convinced you that it's somehow better for SEO purposes. By the way what you want can be obtained by tinkering with .htaccess. If you really need to do this, we can show you how.
Thanks very much, I really appreciate it. Basically, I'm working offline and transferring a lot of pages from an existing site into WP. All of the pages are really well optimized and place amazingly great within Google. I'm just scared I'm going to screw it up and take a huge hit if I don't get this right. In the end, I don't have a problem going with dashes if I can maintain the same level of SEO. The thing is, in switching over to WP, I see many top sites clocking in at the top spots for various search terms... many using the underscore instead of the dashes. It can't be that bad, but that's just me. Have you encountered any downsides to using dashes as far as SEO? I know it's the accepted norm, but...
WordPress adds the "-" where spaces are if you don't specify your Post Slug manually. I'm sure you can look through the WordPress files and find where it occurs and change the "-" to "_" though.
For the existing pages you are porting over put the underscores in manually by specifying the post slug. Just put the "my_latest_blog_post" part in the post slug but keep %postname% part in the permalink structure. WP will pick up the %postname% from the title of the post and use dashes for spaces if you don't specify a post slug. But will use whatever you specify in the post slug, I tired it and it works on 2.6. For any new posts or pages I wouldn't worry about what it is from then on it really doesn't matter.