Thread Starter
ulchie
(@ulchie)
Does anyone know? Doesn’t anyone use multi-page posts??
Thread Starter
ulchie
(@ulchie)
Everyone always raves about using WordPress as a CMS and you normally want a multi page function in a cms.
Someone here MUST know how to get multi-page posts on wordpress 2.2?
You can just simply insert (not in wysiwyg!) this:
<!--nextpage-->
Thread Starter
ulchie
(@ulchie)
Thank you for the reply moshu. Yes, I already know you have to add that code in the post. The problem is that I add that code and then anything beneath it no longer shows up and there are NO links to click to go to the next page. I’ve tried deactivating the plugin and reactivating it. It just doesn’t want to show the links! What is going on?
It used to work fine before I upgraded to wp 2.2….
You don’t really need a plugin for that. However you need to have the template tag in your template:
<?php wp_link_pages(); ?>
Thread Starter
ulchie
(@ulchie)
Well than that is really weird! I have <?php wp_link_pages(); ?> in my template page! But when i add the <!–nextpage–> code i just don’t have the page numbers listed.
What??????
Thread Starter
ulchie
(@ulchie)
This is the code for the page template:
<?php get_header(); ?>
<!– content …………………………… –>
<div id=”content”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
<?php wp_link_pages(); ?>
<?php $sub_pages = wp_list_pages( ‘sort_column=menu_order&depth=1&title_li=&echo=0&child_of=’ . $id );?>
<?php if ($sub_pages <> “” ){?>
<p>Sub Pages Found</p>
<?php echo $sub_pages; ?>
<?php }?>
<?php endwhile; ?>
<?php endif; ?>
</div> <!– /content –>
<?php get_footer(); ?>
For posts having the template tag in your Page template… it is useless!
You need it in the template file that is used to display your posts.
Good reading: http://codex.ww.wp.xz.cn/Template_Hierarchy
Thread Starter
ulchie
(@ulchie)
Ya, sorry about that, I’m an idiot and looked at the wrong page.
Single.php.
Thread Starter
ulchie
(@ulchie)
Nevermind, got it to work.
Thanks for your time and patience moshu! Very much appreciated.