WP-Print

Once installed take the following steps to set it up:

  1. WP-Print settings page is located in WP-Admin -> Settings -> Print
  2. You Need To Re-Generate The Permalink (WP-Admin -> Settings -> Permalinks -> Save Changes)
  3. Refer To Usage For Further Instructions

Usage

  1. Open wp-content/themes/<YOUR THEME NAME>/index.php. You should place it in single.php, post.php, page.php, etc also if they exist.
  2. Find: <?php while (have_posts()) : the_post(); ?>
  3. Add Anywhere Below It: <?php if(function_exists('wp_print')) { print_link(); } ?>
  • The first value is the text for printing post.
  • The second value is the text for printing page.
  • Default: print_link(”, ”)
  • Alternatively, you can set the text in ‘WP-Admin -> Settings -> Print’.
  • If you DO NOT want the print link to appear in every post/page, DO NOT use the code above. Just type in [print_link] into the selected post/page content and it will embed the print link into that post/page only.

Build Status

Development

https://github.com/lesterchan/wp-print

Translations

http://dev.wp-plugins.org/browser/wp-print/i18n/

Credits

Donations

I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks as my school allowance, I will really appreciate it. If not feel free to use it without any obligations.

How do I add this to my theme?

  1. Open wp-content/themes/<YOUR THEME NAME>/index.php
    You may place it in single.php, post.php, page.php, etc also.
  2. Find: <?php while (have_posts()) : the_post(); ?>
  3. Add Anywhere Below It: <?php if(function_exists('wp_print')) { print_link(); } ?>

Simply add this code inside the loop ### where you want the print link to display:

if(function_exists('wp_print')) {
    print_link();
}

If you do not want to print a portion of your post’s content

[donotprint]Text within this tag will not be displayed when printing[/donotprint]

  • The text within [donotprint][/donotprint] will not be displayed when you are viewing a printer friendly version of a post or page.
  • However, it will still be displayed as normal on a normal post or page view.
  • Do note that if you are using WP-Email, any text within [donotprint][/donotprint] will not be emailed as well.

Custom Template

  • WP-Print will load ‘print-css.css’, ‘print-posts.php’ and ‘print-comments.php’ from your theme’s directory if it exists.
  • If it doesn’t exists, it will just load the respective default file that comes with WP-Print.
  • This will allow you to upgrade WP-Print without worrying about overwriting your printing styles or templates that you have created.

nice & good

By Abdechakour on January 14, 2021

Its exactly what i search, light and customisable

i love this plugin

By coddy7 on February 20, 2020

love this plugin

Color printing

By barrysklo on March 28, 2019

WP-Print is a nice plugin, very easy to use. I encounter a problem when printing your special 'print webpage'. Your webpage is always printed in black and white even the page has colored contents. Any idea? Many thanks!

Easy and customizable

By creativis on February 7, 2019

If you dont need complicated functions and understand some of css, its your plugin. Love it, thank you.

Possibly incompatible - seeing 404 instead

By nycynik on September 6, 2017

I installed the plugin, then went to the configuration and was able to configure the plug-in. Tried not installing the PHP on every page as per instructions, and only adding the shortcode. That process seemed to work fine, the button appears and shows the text print. But when I click it, it tries to visit <domain>/<path/to/post>/post/print Since /print is not a valid page, I assume this is something the plugin should fix, but instead it shows 404.

Broken

By MarkFinW on July 18, 2017

404 instead of printing.

I wish there was an option to open the preview in a new tab.

By nick6352683 on May 27, 2017

I know that we can set this manually by using a Custom Print Text Link Style, but the plugin by code should automatically do it, or simply have a checkbox for it in the settings page, as my end users are not that bright to even copy paste the code that I give them! Other than that, this could be a 5 star plugin, a job almost perfectly done. Thanks, Nick

WP-Print

By Farkas Győző (fgywp) on October 13, 2016

Simple but great and sound. I use it for over seven years and it is just doing his job. Egyszerű, de nagyszerű és megbízható. Több mint hét éve használom, és csak teszi a dolgát.

Thanks for rebooting development!

By Jer Clarke (jeremyclarke) on September 3, 2016

Just wanted to thank the author for coming back to this plugin and sprucing things up finally! Been using this for years but lack of updates had me forked for a long time. Came back and found the latest updates fixed all the bugs that bothered me and now I figured out all the theme-template-override solutions to avoid having to hack the core plugin.

Simple and useful solution for making ugly but usable print version of your posts. Definitely worth considering.

Easy to implement once you read the instructions!

By alyubomirov on September 3, 2016

I was expecting a complicated use as usual...just read 'Installation', it is very simple!

2.58.1

  • FIXED: Strip iframe tags as well.

2.58

  • NEW: Ability to print thumbnail. Props @MatthieuMota.

2.57.2

  • FIXED: Check both parent and child theme

2.57.1

  • NEW: Use translate.wordpress.org to translate the plugin
  • FIXED: Unable to update options

2.57

  • FIXED: Notices

2.56

  • NEW: Updated print HTML code. Props @Luanramos

2.55

  • NEW: Bump to 4.1
  • FIXED: get_the_category_list() optional secondary argument
  • FIXED: Replace font with p

2.54

  • NEW: Finally there is custom post type support. Props nimmolo.
  • NEW: Allow Multisite Network Activate
  • NEW: Uses WordPress uninstall.php file to uninstall the plugin

2.53

  • FIXED: Use get_stylesheet_directory() instead of TEMPLATEPATH

2.52

  • FIXED: Added nonce to Options. Credits to Charlie Eriksen via Secunia SVCRP.

2.51

  • NEW: Support for links that start with “//”
  • FIXED: Unable to load WP-Print on Password Protected posts

2.50

  • NEW: Uses jQuery Framework
  • NEW: [donotprint][/donotprint] ShortCode Will Not Be Displayed As Well When Using WP-Email (Refer To Usage Tab)
  • NEW: Use _n() Instead Of __ngettext() And _n_noop() Instead Of __ngettext_noop()
  • FIXED: Uses $_SERVER[‘PHP_SELF’] With plugin_basename(FILE) Instead Of Just $_SERVER[‘REQUEST_URI’]
  • FIXED: Nested ShortCode Issues

Reviews

4.4 out of 5 stars

  • Version: 2.58.2
  • Last updated: 1 year ago
  • Active installations: 10K
  • WordPress version: 4.0
  • Tested up to: 6.3.5
  • PHP version: false