Permalink
Browse files

Fix category index and page index to work with recent WordPress versions

  • Loading branch information...
JanRei committed Aug 7, 2017
1 parent c24debc commit 656494e7e59aaea691900e4fe9c0b9cf42fbfd7e
Showing with 2 additions and 2 deletions.
  1. +1 −1 templates/category-index.php
  2. +1 −1 templates/pageindex.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 = '<h2>' . $category->name.'</h2>';
$subcatquery =array(
View
@@ -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 = '<h2>' . $category->name.'</h2>';
$subcatquery =array(

0 comments on commit 656494e

Please sign in to comment.