Force is_search to always TRUE

You can force WordPress to load search.php template when you need it by using the following code:

add_filter( 'template_include', 'get_search_template' );

instead of

$q->set( 'is_search', true );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)