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

WordPress Trac noreply at wordpress.org
Sun Apr 15 15:16:02 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
-------------------------------------------------+-------------------------

Comment (by birgire):

 Replying to [comment:11 toddhalfpenny]:

 yes, this suggestion would only be for the filter link approach, not the
 "sticky" admin posts approach.

 But I think the "sticky" approach on the front-end can be rather confusing
 regarding the pagination (just as you mention). For example if one sets
 the posts per page as 2 and then 4 can be displayed on the first page.
 Similar for the possible sticky posts duplication.

 Otherwise, if the sticky admin posts approach is taken, then they could be
 pre-pended to the resulting posts array, on the first page, with a
 secondary query? There might be ways to avoid the extra query, by checking
 if all static pages are already displayed on the first page (similar to
 your patch in [attachment:39666.patch] ). Further one could restrict it to
 the {{{page}}} post type, to avoid running extra queries on all post list
 tables, but there might be tickets to expand static pages to custom post
 types?

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


More information about the wp-trac mailing list