[resolved] WP-Insert Page Rules Ignored For Latest Buddypress (4 posts)

  1. webgirl
    Posted 1 year ago #

    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.


  2. webgirl
    Posted 1 year ago #

    Used the code similar to the issue here which was related to ads getting injected into the 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
  3. namith.jawahar
    Plugin Author

    Posted 1 year ago #

    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

  4. webgirl
    Posted 1 year ago #

    Thanks for the reply.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic