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

  1. the_owl
    Posted 3 years 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 ?
    here is a link to a post with a category I want to exclude http://bit.ly/X5xvwk


  2. printfriendly
    Plugin Author

    Posted 3 years 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

  • Print Friendly and PDF Button
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.