• Resolved chinajoe

    (@chinajoe)


    I would like to split a long post to two pages.

    Then have a selection for either page (see below).

    << Previous [1] 2 Next >>

    Is this possible with WordPress and if so, how?

    Thanks in advance,
    Joe

Viewing 7 replies - 1 through 7 (of 7 total)
  • Template_Tags/wp_link_pages. You need it in your index and/or single template file and you must insert this where you want to break the post:
    <!--nextpage-->

    Note. You need to turn off the wysiwyg animal if you want to use this.

    Thread Starter chinajoe

    (@chinajoe)

    Thanks for your quick reply.

    I’m not sure how to do this. I entered
    <?php wp_link_pages(‘before=<p>&after=</p>&next_or_number=number&pagelink=page %’); ?> at the end of the index page.

    Then I placed <!–nextpage–> between the two sections of the post. However, it made no difference.

    Can you explain where I am wrong.

    Thanks,
    Joe

    Yes I can. With 2 quotes:
    You:

    at the end of the index page.

    Codex:

    This tag must be within The_Loop.

    Thread Starter chinajoe

    (@chinajoe)

    Moshu,

    Thank you very much.

    It looks great now!

    Joe

    Hey Moshu,

    How do you check for the page when the post is broken apart? I used query_page_var(‘paged’) but it doesn’t seem to work for single posts, only for the loop.

    Also, how does one check if it’s the first, second, last page in the post?

    Need this so I don’t post the comment stuff and other items until the very end of the post. Cheers!

    Rich

    Need this so I don’t post the comment stuff and other items until the very end of the post.

    I don’t know if there is a way to do it. As it is, the comments are visible on every “page” of the post.

    Hmm, so the single post mechanism doesn’t have anything inside it to recognize whether it’s on page 1 or page 8? Surely you jest! How does it recognise that there is a page 8 then?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Split long post to two pages’ is closed to new replies.