Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    most likely this is happening because the WPAdverts content is rendered with a higher priority then the Advanced Ads, you can try fixing that by adding the code below in your theme functions.php file

    
    add_action( "init", "set_priority_for_wpadverts_the_content", 20 );
    function set_priority_for_wpadverts_the_content() {
      remove_filter('the_content', 'adverts_the_content', 9999);
      add_filter('the_content', 'adverts_the_content', 10 );
    }
    

    Hi guys,

    Thomas, the developer of Advanced Ads here.

    Just wanted to drop something here.

    Advanced Ads uses the_content with a priority of 100.

    You can change that within the plugin settings under Advanced Ads > Settings > General > Content Injection.

    Thomas

    Plugin Author Greg Winiarski

    (@gwin)

    Hi Thomas,
    thanks for the feedback, in this case, the problem should be fixed by setting “Content Injection” to 10000 or more (the code from my last message should not be needed).

    Thread Starter HoussenMoshine

    (@houssenmoshine)

    Hi Thomas and Greg, it worked ! Content injection to 10000. Thanks a lot !!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Using Advanced Ads plugin with WPAdverts’ is closed to new replies.