Support » Plugin: Wp-Insert » WP-Insert Page Rules Ignored For Latest Buddypress

  • Resolved webgirl

    (@webgirl)


    Upgraded to the latest Buddypress and now the rules set in WP-Insert for the Buddypress pages (BP) are being ignored. This occurs on multiple sites I tested.

    When the rules are set to not show on any BP page, WP-Insert still shows. If I deactivate the placement for all Single Pages it no longer shows, however this is not what I want because it turns it off sitewide for all pages.

    Is there a filter that can be applied for now?

    And will you be adding rules that can be used also for Buddypress in the future?

    Thanks in advance.

    https://wordpress.org/plugins/wp-insert/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Used the code similar to the issue here which was related to ads getting injected into the RSS Feed.
    http://wordpress.org/support/topic/wp-insert-inserts-ad-in-rss-feed

    Code used until a fix is issued or rule added to WP-Insert:

    if (!bp_is_blog_page()) { return $content; } //Stop wp-insert from putting ads on Buddypress pages
    in /wp-insert/includes/inpostads/content.php
    Placed it under line 6 $options = get_option('wp_insert_inpostads_options');
    
    Should look like this:
    
    $options = get_option('wp_insert_inpostads_options');
    if (!bp_is_blog_page()) { return $content; } //Stop wp-insert from putting ads on Buddypress pages
    Plugin Author namith.jawahar

    (@namithjawahar)

    Buddypress is not officially supported by Wp-Insrt because of the large number of complication which exists in different buddypress themes and the inablility to control anything beyond filtering for the blog page. Your solution will work for buddypress blog pages, please make sure you reinsert the fix after any updates to wp-insert

    Thanks for the reply.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WP-Insert Page Rules Ignored For Latest Buddypress’ is closed to new replies.