Forum Replies Created

Viewing 1 replies (of 1 total)
  • Can someone provide a little more code for this? I would like to be able to identify the last post on the page and if that post exists I want to have a section of code (adsense) not to be displayed.

    Can anyone provide a more complete code for this specific scenario?

    I need to identify the last post displayed on a page, and once its been identified I need to prevent my adsense code from being displayed.

    The code I have is from another post,

    if ($wp_query->post_count !== $wp_query->current_post) {

    }

    but I cannot figure out how to get the adsense code inside the { }’s. Just pasting the code between them doesn’t work,

Viewing 1 replies (of 1 total)