Code for adding related post based on categories on Genesis Framework