force https except one page/post

I just used this in the functions file in the end function force_ssl() { // Specify ID of page to be viewed on SSL connection if (is_page(8616) && !is_ssl () ) { header(‘HTTP/1.1 301 Moved Permanently’); header(“Location: https://” . $_SERVER[“SERVER_NAME”] . $_SERVER[“REQUEST_URI”]); exit(); } // All other pages must not be https else if (!is_page(8616) … Read more

Simple way to style posts of a single category differently in the loop and in single

I’m not sure I understand the question, since the answer seems straightforward, assuming standard templates – it’s conceivable that your theme does not provide the kinds of classes you are asking for, but IMO would be odd. It is standard practice for theme writers to include the function body_class() which adds different classes to the … Read more

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