From 9eeeb6c1aafe0ade899ca7d98e61822367b476c3 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Mon, 4 Nov 2019 22:53:33 +0000 Subject: [PATCH] Docs: Add PostsPerPage XML doc See #1722. --- WordPress/Docs/WP/PostsPerPageStandard.xml | 69 ++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 WordPress/Docs/WP/PostsPerPageStandard.xml diff --git a/WordPress/Docs/WP/PostsPerPageStandard.xml b/WordPress/Docs/WP/PostsPerPageStandard.xml new file mode 100644 index 0000000000..aa24f740d4 --- /dev/null +++ b/WordPress/Docs/WP/PostsPerPageStandard.xml @@ -0,0 +1,69 @@ + + + + + + + -1, +); +$args = array( + 'posts_per_page' => 100, +); +$args = array( + 'posts_per_page' => '10', +); + +$query_args['posts_per_page'] = 100; + +_query_posts( 'nopaging=1&posts_per_page=50' ); + ]]> + + + 101, +); + +$query_args['posts_per_page'] = 200; + +_query_posts( 'nopaging=1&posts_per_page=999' ); + ]]> + + + + + -1, +); +$args = array( + 'numberposts' => 100, +); +$args = array( + 'numberposts' => '10', +); + +$query_args['numberposts'] = '-1'; + +_query_posts( 'numberposts=50' ); + ]]> + + + 101, +); + +$query_args['numberposts'] = '200'; + +_query_posts( 'numberposts=999' ); + ]]> + + +