• Hi

    I’m unable to break a post page with long content, using WP 2.8, i tried <!--nextpage--> in my post but the content after <!--nextpage--> tag get invisible nor it shows any link to view the rest.

    Here i go with my page.php code

    <?php
    get_header(); ?>
    <div id="content">
    <div id="page-meta" class="clearfix">
    </div><!-- End page-meta -->
    <div id="page-content">
    <?php if (have_posts()) : ?>
    <h2 class="pagetitle"><?php the_title(); ?></h2>
    <?php endif; ?>
    <ul id="posts" class="clearfix">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <li <?php post_class( 'single' ); ?>>
    <div class="post-content">
    <?php the_content(); ?>
    <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    </div><!-- End post-content -->
    </li><!-- End post -->
    <?php endwhile; endif; ?>
    </ul><!-- End posts -->
    </div><!-- End page-content -->
    <?php include( TEMPLATEPATH . '/ad-footer.php' ); ?>
    </div>
    <?php include( TEMPLATEPATH . '/copyright.php' ); ?>
    </div><!-- End col-64 (Left Column) -->
    <div class="col-278 right">
    <?php get_sidebar(); ?>
    </div><!-- End col-278 (Right Column) -->
    <?php get_footer(); ?>

    also visited http://codex.wordpress.org/Styling_Page-Links and tried several options like

    #1
    <div class="pagelink"><?php wp_link_pages('pagelink=Page %'); ?></div>

    #2
    <?php wp_link_pages('<p>Pages: ', '</p>', 'next', ' &raquo;', '&laquo; '); ?>

    Result 0 – Pls Help

Viewing 3 replies - 1 through 3 (of 3 total)
  • have you tried checking the pagination settings? if that doesnt work. Get the pagination plugin 🙂

    Here’s what i use (though your usage above doesn’t look wrong)..

    <?php wp_link_pages('before=<p>Pages &raquo; </p><p>&after=</p>&pagelink=%'); ?>

    As a further suggestion try changing these lines..

    <?php if (have_posts()) : ?>
    <h2 class="pagetitle"><?php the_title(); ?></h2>
    <?php endif; ?>
    <ul id="posts" class="clearfix">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    ..for..

    <?php if (have_posts()) : ?>
    <h2 class="pagetitle"><?php the_title(); ?></h2>
    <ul id="posts" class="clearfix">
    <?php while (have_posts()) : the_post(); ?>

    Help at all?

    Chris

    (@mastertechmag)

    i know the code:
    <!--nextpage-->
    works on creating a page separation on posts… i’m not so sure on pages…

    (i don’t know if that helps you at all…)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Page Break Problem In Post’ is closed to new replies.