mirror of
https://github.com/ascribe/wp-theme
synced 2024-12-22 01:03:40 +01:00
add an All link to category nav
This commit is contained in:
parent
679a77c1de
commit
b0a664a3b9
@ -42,6 +42,8 @@ require 'controller/init.php';
|
||||
$args = array(
|
||||
'hide_empty' => 0
|
||||
);
|
||||
echo "<li><a href='{$blogUrl}'>All</a></li>";
|
||||
|
||||
foreach((get_categories($args)) as $category) {
|
||||
if ($category->cat_name != 'Uncategorized') {
|
||||
echo '<li><a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '><span>' . $category->name.'</span></a></li> ';
|
||||
|
Loading…
Reference in New Issue
Block a user