WP-Print
WP-Print adds a print link to your posts and pages. Following it gives the reader a clean printable document: your content, its comments if you want them, and nothing else — no theme, no sidebar, no navigation. Every link in the printed article is numbered and its URL listed at the end, because a re
WP-Print adds a print link to your posts and pages. Following it gives the reader a clean printable document: your content, its comments if you want them, and nothing else — no theme, no sidebar, no navigation.
Every link in the printed article is numbered and its URL listed at the end, because a reader holding a sheet of paper cannot click anything.
Features
- A printable version of any post, page or custom post type, at /your-post/print/
- Every link footnoted with a number and listed at the end of the document
- Optional comments, images, embedded video and featured image
- [donotprint] for content that should never reach the printed page
- One stylesheet in both text directions, with a dark mode for reading before printing
- Templates and styles you can override from your theme
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, I will really appreciate it. If not feel free to use it without any obligations.
Usage
Add the print link to your theme inside the loop, wherever you want it to appear:
if ( function_exists( 'wp_print' ) ) { print_link(); } print_link( $post_text, $page_text, $display ) takes whether to print or return as its third argument. The first two used to override the link text and no longer do anything: the link is one HTML template on the settings screen, under Templates, and `%POST_TYPE%` in it becomes Post, Page or the name of whatever custom post type is being printed. They stay in the signature so that a theme still passing them keeps working.
If you would rather not have the link on every post, leave your theme alone and type [print_link] into the one post or page that needs it.
Shortcodes
- [print_link] — the print link, in the post or page it is typed into.
- [donotprint]Not for paper[/donotprint] — the enclosed content is dropped from the printable version and left alone everywhere else. WP-Email honours the same tag, so text you exclude from print is excluded from email too.