Is there a way to loop through page content, and display the content that is above page break in one section, and everything that is below the page break in another? Or additionally, a way to generate sections based on multiple page breaks? I need to build a landing page, that shows a starting part of page in a certain way, and all other content in different one. I tried to find the solution but most of the articles are about breaking posts in to more than one page. What I need is a solution for page, not post and one that uses page break to split content to sections, not pages. Thanks in advance!

1 Answer 1


Ok, I found this thread: It partially resolves my problem but breaks the gutenberg blocks, rendering some of them unusable. I would greatly appriciate help with this...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.