From 656494e7e59aaea691900e4fe9c0b9cf42fbfd7e Mon Sep 17 00:00:00 2001 From: JanRei Date: Mon, 7 Aug 2017 12:37:03 +0200 Subject: [PATCH] Fix category index and page index to work with recent WordPress versions --- templates/category-index.php | 2 +- templates/pageindex.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/category-index.php b/templates/category-index.php index 6f61d2a..bdeaa39 100644 --- a/templates/category-index.php +++ b/templates/category-index.php @@ -50,7 +50,7 @@ $subcatquery = array(); if ($cat_array) { foreach($cat_array as $cat) { - $category = get_term_by('ID',$cat, 'category'); + $category = get_term_by('id',$cat, 'category'); $title = '

' . $category->name.'

'; $subcatquery =array( diff --git a/templates/pageindex.php b/templates/pageindex.php index 21b779d..7e9f366 100644 --- a/templates/pageindex.php +++ b/templates/pageindex.php @@ -46,7 +46,7 @@ $subcatquery = array(); if ($cat_array) { foreach($cat_array as $cat) { - $category = get_term_by('ID',$cat, 'category'); + $category = get_term_by('id',$cat, 'category'); $title = '

' . $category->name.'

'; $subcatquery =array(