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

    Thread Starter ADBL

    (@adbl)

    Thanks for your answer!

    How would I apply it to the_title in :

    More about <?php the_title(); ?>: <a href="http://www.google.com/images?q=%22<?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(); ?>”.

    TIA.

    Thread Starter ADBL

    (@adbl)

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

    Thread Starter ADBL

    (@adbl)

    <a href="http://www.site.com/search/siteall?q=<?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?

    TIA.

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