WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jamesbe
    Member
    Posted 5 years ago #

    Hi,

    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:
    http://www.reuters.com/article/politicsNews/idUSTRE51461R20090205

  2. jamesbe
    Member
    Posted 5 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
    Member
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.