WordPress Custom Post Types Class php5.2