post_type == 'pet') { include('data_pet.php'); } return $result; } add_filter('the_content','add_lost_data'); function add_lost_data($result) { global $post; if ($post->post_type == 'lost') { include('data_lost.php'); } return $result; } ?>