开发者

Wordpress: Print all (entire) pages on page.php instead of loading them individually

开发者 https://www.devze.com 2023-02-21 22:29 出处:网络
I’m creating a site in wordpress which are using the jQuery scrolling function for the page layout. It have to scroll vertical. But for doing this I need all the pages to be displayed on the page.php

I’m creating a site in wordpress which are using the jQuery scrolling function for the page layout. It have to scroll vertical. But for doing this I need all the pages to be displayed on the page.php site instead of loading each page开发者_如何学运维 separately.

Is it possible to do some kind of foreach loop and print out all the pages in wordpress?

I hope you understand otherwise please let me know and I’ll elaborate.

Sincere - Mestika


<?php
$args = array(
  'post_type' => 'page'
  );
query_posts($args);
?>
0

精彩评论

暂无评论...
验证码 换一张
取 消