Permalink
Browse files

Merge pull request #250 from JanRei/compatfix

Anpassung des Kategorien- und Seitenindex für aktuelle WordPress-Versionen
  • Loading branch information...
xwolfde committed Aug 7, 2017
2 parents c24debc + 656494e commit 8fe598ca437b20d64d604276d1217a2a22f2ca7a
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 8fe598c

Please sign in to comment.