mostly single updates
This commit is contained in:
@@ -10,7 +10,16 @@ External Modules/Files
|
||||
|
||||
// Load any external files you have here
|
||||
|
||||
//include 'ChromePhp.php';
|
||||
//chromephp:
|
||||
// include 'ChromePhp.php';
|
||||
//usage:
|
||||
//ChromePhp::log('Hello console!');
|
||||
|
||||
// Debug $data will display in console
|
||||
function console_debug( $data ) {
|
||||
$data = json_encode($data);
|
||||
echo "<script>console.dir($data)</script>";
|
||||
}
|
||||
|
||||
/*------------------------------------*\
|
||||
Theme Support
|
||||
@@ -513,13 +522,15 @@ function dis_2019_more_posts_on_home(&$query)
|
||||
if (!$query->is_home() && !$query->is_archive()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if ($query->is_home()) {
|
||||
$pposts = 14;
|
||||
} elseif ($query->is_tag()) {
|
||||
$pposts = 10;
|
||||
} elseif (!$query->in_the_loop()) {
|
||||
return;
|
||||
} else {
|
||||
$pposts = 11;
|
||||
$pposts = 6;
|
||||
}
|
||||
|
||||
//set post_per_page if it's homepage
|
||||
|
||||
Reference in New Issue
Block a user