New answers tagged


There is no way this kind of functionality exist without some plugin/code to implement it and without doing actual rewrites. Wordpress core do not know what is a "stop word" and do not believe in multiple URL for the same content. If a theme was changed, this might have been a code in the theme that was responsible for such a functionality.


Extending @Howdy_McGee answer. First you can not have two post with the same slug (Not title) which explained already in other answers. Second you can have page and post with same slug. But you will be able to access only page when your permalink structure is /%postname%/. And there is debate going on this ticket#13459 about this issue/feature since 6 ...


Whenever a post is saved WP calls the wp_unique_post_slug function that will compute a unique slug, based on the post title and a suffix like -2 if another post has the same title. However, you can filter this function, to generate your own slug. So, if you want to mess things up, that's possible.


As far as I know, you can't have two posts with the same slug. Whenever you attempt to change a post slug to something that already exists, WordPress will append -2 to the newest slug to differentiate the two. So, if you already have a post with the slug of test and attempt to create another post with the same slug, WordPress will instead give that slug test-...


You can use this function: static public function slugify($text) { // replace non letter or digits by - $text = preg_replace('~[^\pL\d]+~u', '-', $text); // transliterate $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text); // remove unwanted characters $text = preg_replace('~[^-\w]+~', '', $text); // trim $text = trim($text, '-'); // ...

Top 50 recent answers are included