I am trying to insert images through a php script. I want to attach them with my posts. I have added a new entry into wp_posts table, and they are showing in the post media. But images are not appearing. But images are in folder and I have checked that. I am not creating any thumbnails. I am just copying original size images. So, is there any way so that I can view images in media as well.