WordPress.org

Ready to get started?Download WordPress

Forums

Printing posts, with comments (2 posts)

  1. eveums
    Member
    Posted 8 years ago #

    I am currently using the wp-print plugin to create a "print" command for all my posts. However, only the post body is printed. Is there a way to print the post's comments with the post as well?

    Thanks for the help!

  2. estjohn
    Member
    Posted 8 years ago #

    I never could get that to work, so I made a css sheet.. I found a few online and how to (I'm kinda new to css) but I was able to figure out I had to change it from what the variables said on there to what I had actually in my css sheet.

    http://www.aleeya.net/print.css

    In the header.php, I had to add this to get it to work:
    (And this can be used for Non-css sites too)

    <link rel="stylesheet" type="text/css" media="print" href="<?php echo get_settings('siteurl'); ?>/print.css" />

    You are welcome to give it a try and tweak it and play and see if that will help if you would like..

    That might have a few extra things you don't need.. or you might need to add some from your style.css sheet.. but basically id you dont want a section to print, then you put none. if you do, then you fill out the attributes you want it to use.

    Unline wp-print, this will NOT show an on screen display before you use it. But, when you goto File/Print preview in your web browser you can see what it will look like.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags