Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How allowed "--", "---" or any other symbol in terms(category) URL. Now WordPress replace from "--" to "-"

ps.I`m using to Subdomain plugin. And IDN subdomain Example: There xn-- is category (url)

share|improve this question

1 Answer 1

The -- to an mdash conversion happens inside wptexturize() which is applied to many things (including taxonomy titles and other functions output.

Look for places you might want to remove the filter from in wp-includes/default-filters.php and remove the filter with the remove_filter() function:

share|improve this answer
I have changed Taxonimy before asked. This is wrong way. formatting.php Work comments line 930 //$title = apply_filters('sanitize_title', $title, $raw_title, $context); This is bad but worked decision – Onore Oct 15 '12 at 19:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.