Support » Fixing WordPress » Convert out accented characters from the_title

Viewing 4 replies - 1 through 4 (of 4 total)
  • WordPress has a function for this <?php remove_accents( $string ) ?>

    Thanks for your answer!

    How would I apply it to the_title in :

    More about <?php the_title(); ?>: <a href="<?php the_title(); ?>%22 films" target="_blank">Google Images</a>

    And how would I do strip accents from the second instance (within the url) and leave them in the first one “More about <?php the_title(); ?>”.


    That would do:
    <?php remove_accents(the_title()) ; ?>

    <a href="<?php remove_accents(the_title()) ; ?>&x=0&y=0&s=date" target="_blank">Site</a>

    Doesn’t seem to remove accents anymore here…

    I checked, it’s the right template, same one that would work a couple of days ago.

    remove_accents(the_title()) does the same as the_title()

    Could that be a plugin conflicting? Something wrong in my syntax?


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Convert out accented characters from the_title’ is closed to new replies.