开发者 |
ethitter
stevenkword thinkoomph |
---|---|
更新时间 | 2022年6月26日 05:10 |
捐献地址: | 去捐款 |
PHP版本: | 3.1 及以上 |
WordPress版本: | 6.0 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
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.
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.
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:
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:
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.add_query_arg()
as identified by Sucuri: https://blog.sucuri.net/2015/04/security-advisory-xss-vulnerability-affecting-multiple-wordpress-plugins.html.%postname%
. Thanks to Wes Herzik at ikonic for discovering and reporting this issue.is_print()
.