• Resolved ADBL

    (@adbl)


    Hi —

    I’m using this on one template :

    <a href="http://www.site.com/search/siteall?q=<?php remove_accents(the_title()) ; ?>&x=0&y=0&s=date" target="_blank">Site</a>

    …to search based on a page title, with accents removed first.

    It did work when I set it up, two days ago. Now I’m trying it with that same template, and it doesn’t. Puzzling.

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

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

    Any hint or troubleshooting help greatly appreciated as this is breaking several pages of my live site (can’t publish the url here unfortunately).

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ADBL

    (@adbl)

    I tried deactivating newly installed plugins one by one, but no luck.

    Could a plugin interfere with this?

    Could that be cache related?

    What else could I check?

    I’m both puzzled and a bit anxious, as these pages are live, and search results are broken for these.

    Thread Starter ADBL

    (@adbl)

    If I put the Codex test code:

    <?php
    $text = "Hoy será un gran día";
    echo remove_accents ( $text );
    ?>

    …in that same template, it DOES work. SO there must be something wrong with my syntax.

    Again, with this:

    <a href="http://www.site.com/search/siteall?q=<?php remove_accents(the_title()) ; ?>&x=0&y=0&s=date" target="_blank">Site</a>

    …accents don’t get removed from “the_title”.

    Could someone jump in?

    Many thanks.

    Try:

    <a href="http://www.site.com/search/siteall?q=<?php echo remove_accents(the_title('','',false)) ; ?>&x=0&y=0&s=date" target="_blank">Site</a>

    Thread Starter ADBL

    (@adbl)

    YESSSSSsssss… THANKS, really!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘remove_accents() doesn’t work anymore here’ is closed to new replies.