bug fixes

missing param for get_post_ancestors() and fixed in displaying category
title