Linux 软件免费装

WP Print Friendly

开发者 ethitter
stevenkword
thinkoomph
更新时间 2022年6月26日 05:10
捐献地址: 去捐款
PHP版本: 3.1 及以上
WordPress版本: 6.0
版权: GPLv2 or later
版权网址: 版权信息

标签

template print printable printer

下载

0.3.1 0.3.2 0.6.3 0.4 0.4.2.2 0.4.3 0.4.3.1 0.4.3.2 0.4.3.3 0.4.4 0.4.4.1 0.5 0.5.1 0.5.2 0.5.3 0.6 0.6.1 0.6.2 0.3 0.4.1 0.4.2 0.4.2.1

详情介绍:

Extends WordPress' template system to support printer-friendly templates for posts, pages, and custom post types. Uses WP standard template naming to support templates on a post-type basis. Supports printing paged posts on single page. Adds nice URLs for printer-friendly pages. IMPORTANT: There are certain plugins that may interfere with this plugin's functionality. See the FAQ for more information.

安装:

  1. Upload wp-print-friendly.php to /wp-content/plugins/.
  2. Activate plugin through the WordPress Plugins menu.
  3. Navigate to Options > Permalinks and click Save Changes to update navigation.

升级注意事项:

0.6.3 Fixes translation support. 0.6.2 Resolves a warning arising in PHP 7.3. 0.6.1 Security update: correct misuse of add_query_arg() as identified by Sucuri: https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html. 0.6 Recommended for all users as this release addresses security vulnerabilities related to privately-published and password-protected posts. 0.5.2 Resolves a problem where requests for print templates redirect to the article. 0.5.1 Ensure that proper query string is built when verbose page rules are required. 0.5 Adds better support for sites that use verbose page rules, resolving situations where requests for print template redirect to the post. 0.4.4.1 Removes unnecessary query_var filter. 0.4.4 Adds full child theme and template hierarchy support for template selection. Simplifies rewrite rules. 0.4.3.3 Corrects a few errors related to paged posts and further enhances compatibility with View All Post's Pages plugin. 0.4.3.2 Fixes a minor bug in plugin's options retrieval and enhances compatibility with forthcoming View All Post's Pages plugin. 0.4.3.1 Fixes a bug in plugin's options retrieval that caused print links to be added to default post types if no post types were chosen. Also resolves a PHP notice encountered when using default permalinks. 0.4.3 Fixes various bugs in the print link, page numbering, and endnote generating functions. Also introduces a class variable for permalink component. Default template is updated to be more SEO friendly, now containing both canonical URL and nofollow declarations. 0.4.2.2 Rewrite rules for custom post types are now generated correctly. 0.4.2.1 Version 0.4.2 omitted the default template. 0.4.2 This release expands the plugin's page rewrite rules to accomodate permalink structures that necessitate verbose rules, such as when the structure begins with %postname%. 0.4.1 This release fixes bug that displayed post links automatically on the wrong post types. 0.4 This release addresses numerous bugs reported by the community, including print templates for child pages. All admin text, save the plugin's name, are now ready for translation. Templates are now completely customizable, and new template functions are included.

常见问题:

Print links don't work

First, navigate to Options > Permalinks in WP Admin, click Save Changes, and try again. If clicking on a print link takes you back to the post or page where the link appeared, see the Known Plugin Conflicts item below. If, after reviewing the remaining FAQ, you are still experiencing problems, visit http://www.thinkoomph.com/plugins-modules/wp-print-friendly/ and leave a comment detailing the problem.

How should I name print templates?

Print templates should be prefixed with wpf and follow WordPress template conventions from there. To use one template for all contexts unless otherwise specified, name your template wpf.php. For both built-in and custom post types, wpf-[post type name].php will be used for that post type. To use a template for a single post type object, name your template wpf-[post type name]-[slug].php. For custom taxonomies, follow the naming conventions for post types. Similarly, wpf-home.php will load that template for the front page of your site. The plugin also includes a default template that may suit many needs.

How do I add a print link to my templates?

The function wpf_the_print_link will add a link to the print-friendly version of whatever page it appears on. This function accepts the following arguments:

  • $page_link: Set to true to add a link to the current page in a paged post in addition a to a link for the entire post.
  • $link_text: Set to text that should appear for the print link. Defaults to Print this post.
  • $class: Specifies the CSS class for the print link. Defaults to print_link.
  • $page_link_separator: If $page_link is true, specifies what separator will appear between the print link for the entire post and the print link for the current page of the post.
  • $page_link_text: If $page_link is true, specifies what text will appear for the print link for the current page. Defaults to Print this page.
  • $link_target: If set to "new", print links will open in a new window.

Known Plugin Conflicts

This plugin is known to conflict with certain plugins, many pertaining to SEO and permalinks. Conflicting plugins include, but are not limited to, the following:

  • WordPress SEO by Yoast: This plugin's Permalink options, particularly Redirect attachment URL's to parent post URL and Redirect ugly URL's to clean permalinks. (Not recommended in many cases!), interfere with WP Print Friendly's ability to display print templates. Both must be disabled, and the site's rewrite rules regenerated (by visiting Options > Permalinks and clicking Save Changes), for WP Print Friendly to function.

更新日志:

0.6.3 0.6.2 0.6.1 0.6 0.5.3 0.5.2 0.5.1 0.5 0.4.4.1 0.4.4 0.4.3.3 0.4.3.2 0.4.3.1 0.4.3 0.4.2.2 0.4.2.1 0.4.2 0.4.1 0.4 0.3.2 0.3.1 0.3