change variable posts to categories