WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. webgirl
    Member
    Posted 5 months 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.

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

  2. webgirl
    Member
    Posted 4 months ago #

    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
  3. namith.jawahar
    Member
    Plugin Author

    Posted 4 months 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
    Member
    Posted 4 months ago #

    Thanks for the reply.

Reply

You must log in to post.

About this Plugin

About this Topic