WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 5 weeks ago

#39685 new defect (bug)

Twenty Seventeen: Pagination links don't appear for home pages

Reported by: dimitris.m Owned by:
Milestone: 5.5 Priority: normal
Severity: normal Version: 4.7.1
Component: Bundled Theme Keywords: has-screenshots has-patch needs-testing dev-feedback
Focuses: ui Cc:

Description

Steps to reproduce:

  • Create a new page and split its content with <!--nextpage-->
  • Set this page to be your Home one (under Settings/Reading)
  • Visit the page in the front-end

The Pagination links aren't shown at all in the bottom of the page.

This works if the page isn't set for Home and also works with the "TwentySixteen" theme.

Attachments (6)

Twenty-Seventeen-Front-Page-Editor.png (72.3 KB) - added by laurelfulford 15 months ago.
Twenty Seventeen - front page editor
Twenty-Seventeen-About-Editor.png (81.2 KB) - added by laurelfulford 15 months ago.
Twenty Seventeen - About Page editor
Twenty-Seventeen-front-page.png (65.8 KB) - added by laurelfulford 15 months ago.
Twenty Seventeen - both the front page and about page content appearing on the front page
39685.patch (464 bytes) - added by poena 8 months ago.
Adds wp_link_pages to content-front-page.php
pagination-with-patch.png (61.0 KB) - added by poena 8 months ago.
Sample page with page break, set as homepage.
39685.1.diff (1.3 KB) - added by ianbelanger 5 weeks ago.
Updates patch to work in content-front-page.php and content-front-page-panels.php

Download all attachments as: .zip

Change History (11)

#1 @SergeyBiryukov
3 years ago

  • Component changed from Themes to Bundled Theme
  • Summary changed from Pagination links don't appear for home Pages in "TwentySeventeen" to Twenty Seventeen: Pagination links don't appear for home pages

@laurelfulford
15 months ago

Twenty Seventeen - front page editor

@laurelfulford
15 months ago

Twenty Seventeen - About Page editor

@laurelfulford
15 months ago

Twenty Seventeen - both the front page and about page content appearing on the front page

#2 @laurelfulford
15 months ago

  • Keywords needs-patch has-screenshots added
  • Milestone changed from Awaiting Review to Future Release

Thanks for reporting this, @dimitris.m!

I can recreate this as well, both by trying to add a page break to the front page's content, and trying to add a page break to one of the pages showing on the front page.

This happens with both the classic and block-based editor.

@poena
8 months ago

Adds wp_link_pages to content-front-page.php

#3 @poena
8 months ago

  • Keywords has-patch added; needs-patch removed

@poena
8 months ago

Sample page with page break, set as homepage.

@ianbelanger
5 weeks ago

Updates patch to work in content-front-page.php and content-front-page-panels.php

#4 @ianbelanger
5 weeks ago

  • Keywords needs-testing dev-feedback added

I updated the patch so that pagination will work on the homepage and in the homepage panels. Would love to get some feedback from other devs on this one.

#5 @ianbelanger
5 weeks ago

  • Milestone changed from Future Release to 5.5
Note: See TracTickets for help on using tickets.