'pid' => $s->category_id,
'name' => 'page',
'display_name' => 'Pages - '. $s->category_id_title,
- 'type' => 'page_type,category'
+ 'type' => 'category',
+ 'page_type' => $type_to_name['page'],
);
continue;
}
'pid' => $s->category_id,
'name' => 'blog',
'display_name' => 'Blog Posts - ' . $s->category_id_title,
- 'type' => 'blog,category'
+ 'type' => 'category',
+ 'page_type' => $type_to_name['blog'],
+
);
}
}
'pid' => $id,
'name' => $base[$id],
'display_name' => "{$name} (All)",
- 'type' => 'page_type'
+ 'type' => 'page_type',
+ 'page_type' => $type_to_name['page'],
);
$categories = array_merge($categories, $sub['page']);
continue;
'pid' => $id,
'name' => $base[$id],
'display_name' => "{$name} (All)",
- 'type' => 'page_type'
+ 'type' => 'page_type',
+ 'page_type' => $type_to_name['blog'],
);
continue;