[wp-trac] [WordPress Trac] #39666: Put front page on top of "All pages" list

WordPress Trac noreply at wordpress.org
Sun Apr 15 14:18:04 UTC 2018


#39666: Put front page on top of "All pages" list
-------------------------------------------------+-------------------------
 Reporter:  Presskopp                            |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Posts, Post Types                    |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-patch dev-feedback 2nd-        |     Focuses:
  opinion                                        |  administration
-------------------------------------------------+-------------------------
Changes (by toddhalfpenny):

 * keywords:  needs-patch => needs-patch dev-feedback 2nd-opinion


Comment:

 Replying to [comment:10 birgire]:
 > The sticky posts are displayed in a post list table with:
 >
 > {{{
 > if ( ! empty( $q['show_sticky'] ) ) {
 >       $query['post__in'] = (array) get_option( 'sticky_posts' );
 > }
 >
 > }}}
 Yes, I was thinking similar, but this would reduce the query to just
 sticky posts, no?

 I feel that the logic would need to be something like this;
 1. Pass in priority_ids
 1. Fetch the posts
 1. If on Page 1 AND there is something in priority_ids then re-run query
 with retrieved Ids and the priority_ids.

 This will mean that maybe 1st page has (posts_per_page + 2) pages shown, I
 think.
 I think desired behaviour should be agreed on, in terms of pagination.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39666#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list