• Resolved caroline

    (@makeupedia)


    Hello!

    I use this code to display the ad after the first post, but can I add some extra code to this and show an ad after the second post too?

    
    // global $wp_query; // uncomment if loop content is in another file or function
    if( function_exists('the_ad_placement') && $wp_query->current_post === 1 ){ 
        the_ad_placement('inarticlead2');
    }
Viewing 1 replies (of 1 total)
  • Plugin Author Thomas Maier

    (@webzunft)

    Hi caroline,

    thanks for reaching out.

    You can adjust that code to your liking if you know your way around WordPress coding and PHP. E.g., increase the 1 to move the placement to a lower position.

    Or use the Post List placement if you don’t want to hard code the solution yourself.

    Best regards,
    Thomas

Viewing 1 replies (of 1 total)
  • The topic ‘Show ad after first and second post’ is closed to new replies.