WordPress.org

Ready to get started?Download WordPress

Forums

Print Friendly and PDF Button
[resolved] Exclude PF from certain categories (2 posts)

  1. the_owl
    Member
    Posted 1 year ago #

    I am trying to exclude (automatically) PF icon from certain categories.
    I see the new version you can now choose PF for Categories, but I dont see where I can choose those categories. Moving forward, I would like to not have to use the shortcode on new posts. is it possible to add !in_category (array (101, 102, 103)) to PF ?
    thanks
    here is a link to a post with a category I want to exclude http://bit.ly/X5xvwk

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

  2. printfriendly
    Member
    Plugin Author

    Posted 1 year ago #

    In the latest version of our plugin (3.1.7) you can add that code to the line 284 of pf.php. The result should be something like:

    || (is_category() && isset($this->options['show_on_categories']) && !in_category (array (101, 102, 103)) )

    Please note that on each subsequent update you'll have to change that line all over again until we support that feature from the plugin settings.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.