<!-nextpage--> all on one page?? (3 posts)

  1. jamesbe
    Posted 7 years ago #


    I am wondering if this is possible. I would like to page split my articles with the <!-nextpage--> feature, so I could have say 4 pages for an article.

    But at the bottom of each page I would like to add a button that says "View articles on Single page" which allows you to click it and ignore the pageing if you wish.

    Kind of like how Reuters.com does it SEE HERE:

  2. jamesbe
    Posted 7 years ago #

    I had an idea, but I'm not sure how to implement.

    I set an if statement around:
    wp_link_pages(array('before' => '<p>Pages: ', 'after' => '</p>', 'next_or_number' => 'number'));

    in my single.php -- so if so if "something" is set then don't do the wp_link_pages and it will show it all in one page. But by default show it in multiple pages.

    So what I was thinking is if one were to click on a link a variable of some sort would get set (global or session var or whatever) and it would display differently. But I'm not sure how to get that variable set.... maybe I would have to call another script? Any ideas?

  3. jamesbe
    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.