Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hesham Zebida

    (@hishaman)

    I will see what I can do, but till then… Can you please copy and paste the exact code your are using?

    I am asking for this because I see a discussion on the link you mentioned and not really sure which code you end up using on your live site.

    Thread Starter renuskanth

    (@renuskanth)

    add_action( ‘the_post’, ‘archive_adsense_injection’ );

    function archive_adsense_injection() {
    if( is_archive() ) {
    global $wp_query;
    if( $wp_query->current_post%8== 0 && $wp_query->current_post >0 && $wp_query->current_post < 18 ) {
    echo ‘AD CODE Here’;
    }
    }
    }

    Plugin Author Hesham Zebida

    (@hishaman)

    Thanks for the code, I will investigate this issue and get back to you soon!

    Plugin Author Hesham Zebida

    (@hishaman)

    Ok, I got this fixed.

    The fix will be included in the coming 1.5.9 update.

    Thread Starter renuskanth

    (@renuskanth)

    Thanks Hesham, i will wait for the update or point me to dev version so i can test it

    Plugin Author Hesham Zebida

    (@hishaman)

    I will update the plugin today or max by tomorrow!

    Plugin Author Hesham Zebida

    (@hishaman)

    Just want to let you know that I’ve updated the plugin, you should get a notification in your dashboard soon.

    Let me know how it goes.

    Thread Starter renuskanth

    (@renuskanth)

    Thank you, working perfectly.

    Plugin Author Hesham Zebida

    (@hishaman)

    No problem, glad it worked!

    Thanks for giving your feedback and rating the plugin ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Plugin conflict with ADs injection code in Archive pages’ is closed to new replies.