I am new to drupal, I wished to view the contents using custom modules. For that, I have created custom content type and added some contents. Now I want to create a module to display all the contents that are created by those content types, in a page. Contents should have title, image, description, date field. How can I do that.?
You can use Views to list content of custom content type.
Update(Programmatically load nodes):
<?php $type = "custom_content_type"; $nodes = node_load_multiple(array(), array('type' => $type)); foreach($nodes as $node): ?> <?php print $node->nid; ?> <?php print $node->title; ?> <?php endforeach; ?>