mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 03:56:21 +05:30
Update functions.php
This commit is contained in:
parent
bbecb8e242
commit
280af1cb2d
1 changed files with 6 additions and 1 deletions
|
|
@ -1428,7 +1428,12 @@ function get_categorycount($var)
|
|||
|
||||
foreach ($posts as $index => $v) {
|
||||
|
||||
if (stripos($v['dirname'], '/' . $var . '/') !== false) {
|
||||
// dirname string
|
||||
$dirname = $v['dirname'];
|
||||
|
||||
$str = explode('/', $dirname);
|
||||
|
||||
if (strtolower($var) === strtolower($str[3])) {
|
||||
$tmp[] = $v;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue