This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function advanced_search_query($query) { | |
//var_dump( $query ); | |
if( is_home() && ( isset( $_GET['category_name']) || isset( $_GET['search']) ) ) { | |
error_log( 'woooooo'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*======================================* | |
*====== Default CSS | Author: KL ======* | |
*======================================*/ | |
*, | |
*:before, | |
*:after { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
text-rendering: optimizeLegibility; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$redirects = array( | |
'/old_url/' => '/new_url/', | |
'/old_url/' => '/new_url/', | |
); | |
if (array_key_exists($_SERVER['REQUEST_URI'], $redirects)) { | |
header('HTTP/1.0 301 Moved Permanently'); | |
header('Location: ' . $redirects[$_SERVER['REQUEST_URI']]); | |
exit(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* For developers: WordPress debugging mode. | |
* | |
* If the default WP_DEBUG function is set to false and | |
* there are still warnings or errors showing up, try | |
* using the following instead | |
*/ | |
ini_set('log_errors','On'); | |
ini_set('display_errors','Off'); | |
ini_set('error_reporting', E_ALL ); |