Check post type before filtering content