fix category and sub category in post front end page