term_id] = $category_object; } foreach (explode(",", $result) as $node) { $parts = explode("/", $node); $category_id = end($parts); $category = $categories_by_id[$category_id]; $first_comic_in_category = get_terminal_post_in_category($category_id); $first_comic_permalink = get_permalink($first_comic_in_category->ID); $archive_image = get_comic_url("archive", $first_comic_in_category); ?>