Forums

One page printable format (3 posts)

  1. Master_Kato
    Member
    Posted 3 years ago #

    Hi,

    I've modified my CSS file to toss out all sidebars and everything - but if printing I want to be able to get all posts on a single page.

    How can I edit the "Posts Per Page" reading option using a template tag? That way I can put it a link for a printable, 1 page view and it will edit the Posts Per Page to be very large.

    Thanks in advance !

  2. Kafkaesqui
    Moderator
    Posted 3 years ago #

    http://codex.wordpress.org/Template_Tags/query_posts

    See the info on the 'showposts' parameter. Use 'showposts=-1' (that's minus one) to show all posts.

  3. Master_Kato
    Member
    Posted 3 years ago #

    Duh, Thanks I must have glanced right over that.

    What is the best way to include a link to a "printable" format?
    Maybe using POST data, then check for it and call query_posts("showposts=-1") if the POST data is present?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags