WordPress.org

Ready to get started?Download WordPress

Forums

Print Friendly and PDF Button
[resolved] Missing Shortocde (4 posts)

  1. Baden
    Member
    Posted 1 year ago #

    To add a shortcode that allows the print button to be placed on any post or page, simply add the following to the end of pf.php:

    add_shortcode('print-friendly', 'pf_show_link');

    Why this is not included in the first place is anyones guess.

    http://wordpress.org/extend/plugins/printfriendly/

  2. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    There's a shortcode option in the plugin settings.

    <?php if(function_exists('pf_show_link')){echo pf_show_link();} ?>

    Print Friendly & PDF Plugin Settings Page: screenshot showing shortcode

  3. OC2PS
    Member
    Posted 1 year ago #

    <?php if(function_exists('pf_show_link')){echo pf_show_link();} ?>
    is not a shortcode.

    Please refer to http://codex.wordpress.org/Shortcode

    Shortcode should be something like
    [print-friendly]

    @Baden is on point. See http://codex.wordpress.org/Shortcode_API

  4. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the help. This is now fixed in the latest version 3.1.5

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags