Show ad after first and second post
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Show ad after first and second post’ is closed to new replies.