Title: WP-Print
Author: Lester Chan
Published: <strong>2006 年 1 月 3 日</strong>
Last modified: 2023 年 8 月 9 日

---

搜索插件

![](https://ps.w.org/wp-print/assets/banner-772x250.jpg?rev=1206764)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/wp-print/assets/icon.svg?rev=978022)

# WP-Print

 作者：[Lester Chan](https://profiles.wordpress.org/gamerz/)

[下载](https://downloads.wordpress.org/plugin/wp-print.2.58.2.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-print/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-print/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/wp-print/#developers)

 [支持](https://wordpress.org/support/plugin/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](https://github.com/lesterchan/wp-print)

### Translations

[http://dev.wp-plugins.org/browser/wp-print/i18n/](http://dev.wp-plugins.org/browser/wp-print/i18n/)

### Credits

 * Plugin icon by [SimpleIcon](http://www.simpleicon.com) from [Flaticon](http://www.flaticon.com)
 * Icons courtesy of [FamFamFam](http://www.famfamfam.com/)

### 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.

## 屏幕截图

 * [[
 * Admin Print Options
 * [[
 * Print Post Link
 * [[
 * Print Page

## 常见问题

### 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.

## 评价

![](https://secure.gravatar.com/avatar/f442de9912d44f24e96b2d6fd6118d5625249f927be46c0139a7d29350fd177a?
s=60&d=retro&r=g)

### 󠀁[nice & good](https://wordpress.org/support/topic/nice-good-8/)󠁿

 [Abdechakour](https://profiles.wordpress.org/abdechakour/) 2021 年 1 月 14 日

Its exactly what i search, light and customisable

![](https://secure.gravatar.com/avatar/2da9a16eeccf3c15dcbeef9c3131129156c5f853893e6c7cf3e0b7017868244b?
s=60&d=retro&r=g)

### 󠀁[i love this plugin](https://wordpress.org/support/topic/i-love-this-plugin-357/)󠁿

 [coddy7](https://profiles.wordpress.org/coddy7/) 2020 年 2 月 20 日

love this plugin

![](https://secure.gravatar.com/avatar/9bf5046b67cbdacde6e11ec9ad586e446fb5271885e0d00ad449c642530979f5?
s=60&d=retro&r=g)

### 󠀁[Color printing](https://wordpress.org/support/topic/color-printing/)󠁿

 [barrysklo](https://profiles.wordpress.org/barrysklo/) 2019 年 3 月 28 日

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!

![](https://secure.gravatar.com/avatar/36812e57454e91ab07ef49608bec19dd04c4e17ddd4113520b7975190806c40c?
s=60&d=retro&r=g)

### 󠀁[Easy and customizable](https://wordpress.org/support/topic/easy-and-customizable-7/)󠁿

 [creativis](https://profiles.wordpress.org/creativis/) 2019 年 2 月 7 日

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

![](https://secure.gravatar.com/avatar/f5e374911b67f543d0e0fe88346d72056d9885ceb1e17d6ba883ba0caf176355?
s=60&d=retro&r=g)

### 󠀁[Possibly incompatible – seeing 404 instead](https://wordpress.org/support/topic/possibly-incompatible-seeing-404-instead/)󠁿

 [nycynik](https://profiles.wordpress.org/nycynik/) 2017 年 9 月 6 日 1 回复

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.

![](https://secure.gravatar.com/avatar/79773657b52f8be86cb2cf6361b06bac140ac96daf85b45eee56a27ea077ef03?
s=60&d=retro&r=g)

### 󠀁[Broken](https://wordpress.org/support/topic/broken-557/)󠁿

 [MarkFinW](https://profiles.wordpress.org/markfinw/) 2017 年 7 月 18 日

404 instead of printing.

 [ 阅读所有43条评价 ](https://wordpress.org/support/plugin/wp-print/reviews/)

## 贡献者及开发者

「WP-Print」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Lester Chan ](https://profiles.wordpress.org/gamerz/)

「WP-Print」插件已被翻译至 9 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-print/contributors)
为本插件所做的贡献。

[帮助将「WP-Print」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-print)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-print/)，查看[SVN仓库](https://plugins.svn.wordpress.org/wp-print/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/wp-print/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-print/)。

## 更新日志

### 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](http://andrewnimmo.org/).
 * 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

## 额外信息

 *  版本 **2.58.2**
 *  最后更新：**3 年前**
 *  活跃安装数量 **8,000+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **6.3.8**
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/wp-print/) 、 [English (UK)](https://en-gb.wordpress.org/plugins/wp-print/)、
   [English (US)](https://wordpress.org/plugins/wp-print/) 、 [French (France)](https://fr.wordpress.org/plugins/wp-print/)、
   [German](https://de.wordpress.org/plugins/wp-print/) 、 [Greek](https://el.wordpress.org/plugins/wp-print/)、
   [Hungarian](https://hu.wordpress.org/plugins/wp-print/) 、 [Russian](https://ru.wordpress.org/plugins/wp-print/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/wp-print/) 和 [Swedish](https://sv.wordpress.org/plugins/wp-print/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-print)
 * 标签
 * [print](https://cn.wordpress.org/plugins/tags/print/)[printer](https://cn.wordpress.org/plugins/tags/printer/)
   [wp-print](https://cn.wordpress.org/plugins/tags/wp-print/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-print/advanced/)

## 评级

 4.4 星（最高 5 星）。

 *  [  31 条 5 星评价     ](https://wordpress.org/support/plugin/wp-print/reviews/?filter=5)
 *  [  4 条 4 星评价     ](https://wordpress.org/support/plugin/wp-print/reviews/?filter=4)
 *  [  1 条 3 星评价     ](https://wordpress.org/support/plugin/wp-print/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/wp-print/reviews/?filter=2)
 *  [  4 条 1 星评价     ](https://wordpress.org/support/plugin/wp-print/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-print/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-print/reviews/)

## 贡献者

 *   [ Lester Chan ](https://profiles.wordpress.org/gamerz/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-print/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://lesterchan.net/site/donation/)