Hi! I've got a query that looks like this:
$title = get_the_title();
$new_query = new WP_Query(array('faq' => $title, 'post_type' => 'question_faq', 'orderby' => 'rand', 'showposts' => '1'));
This works perfectly, until $title got "!?>åäö" etc. Is there a way to strip down all this "extras", or get a "slug version" of a the_title()? Or do you have any other ideas of how to compare my custom post type "faq" slugs with the_title?
Thank you in advance!