if is_page() is not working with wp_redirect

In the case of a plugin template, you might find the slug is more reliable for a condition – see below for alternate approach. When using is_page_template() the parameter passed is anypath/filename.php. Without knowing your file system specifics or the name of the plugin, it is impossible to give you the correct relative path for … Read more

Remember language choice on multisite website

setcookie() has the following signature: setcookie ( $name, $value = “”, $expires = 0, $path = “”, $domain = “”, $secure = FALSE, $httponly = FALSE ) You’re setting the cookie’s value to 1 in your code. I suspect you intend to do something more like setcookie(‘language’, $_GET[‘language’], time() + 1209600, “/”, “example.com”, false); Notes … Read more

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