Tagged: ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21954

    Hi,

    When I use the_title() in the single.php it prints the title of the post with converted dashes into –

    How to force default dash?

    Thanks!

    #113682

    <?php

    /*

    Plugin Name: Remove the wptexturize filter

    */

    remove_filter( ‘the_title’ , ‘wptexturize’ );

    remove_filter( ‘the_content’ , ‘wptexturize’ );

    remove_filter( ‘the_excerpt’ , ‘wptexturize’ );

    remove_filter( ‘comment_text’ , ‘wptexturize’ );

    remove_filter( ‘list_cats’ , ‘wptexturize’ );

    ?>

    #113683

    Hi!

    Glad you found a solution :)

    Best regards,

    Peter

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘the_title() converts dashes into & #8211;’ is closed to new replies.