WordPress.org

Support

Support » How-To and Troubleshooting » What is the equivalent of the_post() for page?

What is the equivalent of the_post() for page?

  • I want to display pages instead of posts something like below:

    <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>

    How do I achieve this?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘What is the equivalent of the_post() for page?’ is closed to new replies.
Skip to toolbar