The split post code dont Work
-
Hi nobita, a while since the last time i ask for support ^^ i read this 2 articles explaining how to split WordPress posts into multiple pages
without having to use any pluginI need to know where to put the in template code because i cant find the right position in single.php or maybe your theme have a better implementation for split posts into multiple pages. I quote the 2 Tutorial template explain part:
Edit your template
In your WordPress theme directory you’ll find single.php. This is the template responsible for displaying individual posts or pages. And it’s here that we need to tell WordPress to display paging links for our <!–nextpage–> quicktags.
In single.php (or perhaps loop-single.php, which is often called from single.php) you’ll find the WordPress loop which displays your post or page. Here’s a cutdown version of that loop
if (have_posts()) while (have_posts()) : the_post();
the_title();
the_content();
wp_link_pages();
endif;
endwhile;This loop displays the post or page title and the content, but notice the wp_link_pages function. This function displays
a set of page links as per the <!–nextpage–> quicktags you put in your post.please tell me where to put the template code or what other function i can use for split posts into multiple pages, i dont want use plugin.
Sorry for the long post and thanks for all the support.
The topic ‘The split post code dont Work’ is closed to new replies.
