A
A
Andrey Barchuk2020-07-01 16:20:05
WordPress
Andrey Barchuk, 2020-07-01 16:20:05

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 5efc8c7426081923903628.png

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']);
?>


Advise where to look for a solution, I could not google

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question