Answer the question
In order to leave comments, you need to log in
How to display page break (gutenberg) in Wordpress?
I found a button in the gutenberg editor: Page break it divides the post into pages
Task: display the contents of all the necessary divisions on one page
Found solutions for the Read more button, but this does not work because it only divides into 2 parts
<?php
global $post;
$content_parts = get_extended( $post->post_content );
echo apply_filters('the_content', $content_parts['main']);
echo "разделитель";
echo apply_filters('the_content', $content_parts['extended']);
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question