[wp-trac] [WordPress Trac] #48174: Paginate a sliced number of posts
WordPress Trac
noreply at wordpress.org
Mon Sep 30 02:36:33 UTC 2019
#48174: Paginate a sliced number of posts
-------------------------+-----------------------------
Reporter: rafiq4580 | Owner: Rafiq
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: 5.2.3
Severity: critical | Keywords: needs-patch
Focuses: |
-------------------------+-----------------------------
{{{#!php
<?php
$args = array(
'post_type' => 'post',
'posts_per_page' => '5'
);
$query = new WP_Query( $args );
}}}
This code is triggering all (i.e.3000) the posts and viewing 5 posts in a
page. But, there is no way to paginate between between a number of posts
(1 to 300).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48174>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list