wordpress - Display Ad every after 3 Posts -


i'm trying display advertisement every after 3 posts in wordpress blog. guys check that's wrong in code?

see code here

see make $after_every = 0 , add $after_every++ bottom of while loop

then add 1 condition

if($after_every%3==0){ show add} 

i think works.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

php - How can I edit my code to echo the data of child's element where my search term was found in, in XMLReader? -