fixed post types global variables
reeeally fixed it this time