WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ph.goradia
    Member
    Posted 2 years ago #

    Hello,

    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
    Member
    Posted 2 years ago #

    This might be helpful:
    http://codex.wordpress.org/The_Loop

  3. justingreerbbi
    Member
    Posted 2 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. ph.goradia
    Member
    Posted 2 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,
    Parth.

Topic Closed

This topic has been closed to new replies.

About this Topic