Site icon Hip-Hop Website Design and Development

How is the Web page Splitting applied within the theme?

I’m learning how the web page splitting is applied, after inserting within the publish.

At the moment in my theme, all cut up pages will present the content material of the primary web page. So I believe the problem comes from the one.php template. I examine it and under is the codes to show the publish content material:

<predominant id="main" class="site-main single-page" position="main">
  <part class="wrapper">
    <?php /* The loop */ ?>
    <?php if (have_posts()) : ?>
    <?php whereas (have_posts()) : the_post(); ?>
      <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
        <div class="entry">
          <?php the_content(''); ?>
            
      <?php if ( is_singular( 'wperrors' ) ) { ?>
        <?php wp_link_pages(); ?> 
      <?php } ?>            
        </div>
      </article>
    <?php endwhile; ?>
    <?php else : ?>
    <?php endif; ?>
  </part>
</predominant><!-- #predominant -->

Then I set up the WordPress default theme, which can show cut up pages with correct contents. I examine its single.php template:

    <?php if (have_posts()) : whereas (have_posts()) : the_post(); ?>

        <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
            <h2><?php the_title(); ?></h2>

            <div class="entry">
                <?php the_content('<p class="serif">' . __('Learn the remainder of this entry &raquo;', 'kubrick') . '</p>'); ?>

                <?php wp_link_pages(array('earlier than' => '<p><sturdy>' . __('Pages:', 'kubrick') . '</sturdy> ', 'after' => '</p>', 'next_or_number' => 'quantity')); ?>

                        <?php } edit_post_link(__('Edit this entry', 'kubrick'),'','.'); ?>

                    </small>
                </p>

            </div>
        </div>

    <?php endwhile; else: ?>

        <p><?php _e('Sorry, no posts matched your standards.', 'kubrick'); ?></p>

<?php endif; ?>

I take away some ineffective codes associated to feedback.

The one operate that’s used to show the content material is the_content(), and I examine its doc however can not discover any data how it’s used to retrieve the content material of the present cut up web page.

And I evaluate the codes in these two information and people used to show the contents are literally be the identical. So, why the default WP theme can show the correct cut up web page content material, whereas mine can not?