How to show all posts on custom post (4 posts)

  1. Parth Goradia
    Posted 4 years ago #


    I want a mirror page of default home page with all the posts of the site. Or please tell how to use loop.php code for custom post which can show all the post with newly added first.

    Thank you,
    Parth Goradia.

  2. shibulijack
    Posted 4 years ago #

    This might be helpful:

  3. Justin Greer
    Forum Moderator
    Posted 4 years ago #

    Look up the loop

    <?php query_posts('post_type=Custom_post_type_name'); ?>
      <?php while (have_posts()) : the_post(); ?>
        <!-- format for output go here -->
      <?php endwhile;?>
  4. Parth Goradia
    Posted 4 years ago #

    Thank you very much Shibu and Justin.

    I have created a template and make a page which is using this template. Now I able to put all the posts in that page. But the problem is of "expert". It's not coming with the post Do you have any solution for this?

    Thanks in advance,

Topic Closed

This topic has been closed to new replies.

About this Topic