add permalink to posts, courses and categories