Open bobbingwide opened 3 years ago
I also reproduced the problem with TT1 blocks and Gutenberg 10.0.2 as the only active plugin.
I have confirmed that if I add a page break block to a theme that supports full site editing, the block shows correctly in the site editor and post editor, but not the front.
The page break block also does not work with traditional/PHP based themes that does not add wp_link_pages()
.
See https://developer.wordpress.org/reference/functions/wp_link_pages/
Looks like without wp_link_pages, <!‐‐nextpage‐‐>
which is saved in
https://github.com/WordPress/gutenberg/blob/trunk/packages/block-library/src/nextpage/save.js#L7
is not understood?
@noisysocks: flagging this one as a must-have since it seems like a regression.
Hi, I was curious about this one and made a pull request with something that could fix it: https://github.com/WordPress/gutenberg/pull/37672
I'm removing this issue from WP 5.9 project board since RC1 was released last night.
I think we can go with @alberto-marin's solution for the next minor release.
P.S. I will finish reviewing the PR later today.
Thank you everyone for contributing ❤️
Unfortunately, the fix that was applied for this does not work 100% of the time:
core/nextpage
block, which will not work for paginated content that was created using the classic editorcontent_pagination
filter to add pagination when <!--nextpage-->
is not present in the contentCan we re-open this issue and work on a new fix please?
Description
Step-by-step reproduction instructions
Using a Full Site Editing theme such as TT1-blocks
Expected behaviour
Ability to view the individual pages by clicking on the links.
There should be links for the pages which aren't the current page, with each link containing the page number of the page to view. https://blocks.wp-a2z.org/block/page-break-core-nextpage/2/
n+1 pages where n = number of page break blocks used.
Actual behaviour
The Pages: links do not appear. It is possible to navigate to the other pages. But there are no visual clues.
Screenshots or screen recording (optional)
Expected results. Unchanged from how it works for a non-full site editing theme.
Code snippet (optional)
WordPress information
Device information