WordPress.org

Ready to get started?Download WordPress

Forums

Split Long Posts? (8 posts)

  1. astereo
    Member
    Posted 8 years ago #

    Hello.
    I've been trying to find a plugin that splits long posts over multiple pages. The plugin I tried using (Page Posts 2) is activated and didn't do anything. I looked through the php file to see if there was a setting for how many words before it split and I couldn't find one.

    Anyone know how to get this plugin to work or know of a similar one?

    Thanks!

  2. syncbox
    Member
    Posted 8 years ago #

    When writing or editing a post, there should be quicktags available. The more quicktag writes <!--more--> where you want the post to break.

  3. astereo
    Member
    Posted 8 years ago #

    The more quicktag doesn't not break posts into multiple pages, it only helps decrease the amount shown on a homepage by making you click more to read the rest.

  4. moshu
    Member
    Posted 8 years ago #

    <!--nextpage-->
    will do that, provided you have the proper template tag in your template file (index.php?), namely
    <?php wp_link_pages(); ?>
    - usually it is in the feedback div of the Loop.

  5. syncbox
    Member
    Posted 8 years ago #

    what about using the_excerpt rather than the_content?


    <?php
    if ($single)
    the_content();
    else {
    the_excerpt();
    if (!empty($post->post_excerpt))
    {
    ?>

    <?php
    }
    }
    ?>

    instead of


    <?php the_content(__('(more...)')); ?>

    I mean, what's the point of the split? With the excerpt, you could explicitly copy the first portion into the excerpt field when writing the post or leave the excerpt field empty and it will auto-default to show first 120 words...

    read: http://codex.wordpress.org/Template_Tags/the_excerpt

  6. Chris_K
    Member
    Posted 8 years ago #

    You can also insert the <!-- nextpage -->, but your theme will need to support it and it seems many theme authors aren't aware it exists. But essentially, each time you use it it breaks the post up into pages.

    More info on that option here: http://codex.wordpress.org/FAQ_Troubleshooting#I_used_the_Quicktag_.3C.21--nextpage--.3E_in_a_post_so_why_doesn.27t_it_work.3F

    [gah, while I was writing that 3 others responded. lol]

  7. astereo
    Member
    Posted 8 years ago #

    Thanks guys, got it to work :)

  8. SEO Dave
    Member
    Posted 8 years ago #

    I was looking for help with the PagePosts 2 plugin which I think is suppossed to automatically split posts that are long into multiple pages. I found the plugin under http://codex.wordpress.org/Plugins/Posts_Formatting

    Like astereo above I've installed the plugin, but nothing happened (I tried both versions of the plugin). So checked out the associated webhsite, but it's in Chinese, so no help their.

    I've also tried <!-- nextpage --> which does what I want, but not automated. I need it automating because some of the posts I plan to add will result in a lot of pages (over 30) and I'd like them all roughly the same size without having to work it out manually (adding the <!-- nextpage --> at X number of charachters would be time consuming!).

    So has anyone got pagepost2 plugin working with WP version 2.0.2 or know of another solution?

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic