• Can anyone please help me out with applying plugins to specific categories?
    I’m using Feedback by Paragraph.

    I tired this:
    Found these lines in the plugin:

    add_filter('the_content', 'FBP_preFlight');
    add_filter('comments_array', 'FBPfiltercomments', 1);
    add_filter('get_comments_number', 'FBPfiltercommentcount');
    add_filter('comments_template', 'FBPcommentsmessage');

    And wrapped them in an if statement as follows:

    if( in_category( '1' ) ) {
        add_filter('the_content', 'FBP_preFlight');
        add_filter('comments_array', 'FBPfiltercomments', 1);
        add_filter('get_comments_number', 'FBPfiltercommentcount');
        add_filter('comments_template', 'FBPcommentsmessage');
    }

    I replaced ‘1’ with the ID or slug of the category I wanted to limit the plugin to.

    this didn’t work… any ideas?
    thanks!

  • The topic ‘Modify Feedback by Paragraph’ is closed to new replies.