Placing adsense ads after the 1st and 4th post on the front page
Posted 19 April 2013 - 11:49 PM
Framework Version: 2.4
WordPress Version: 3.5.1
I want to show an adsense ad after the 1st and 4th post on the main page. I tried doing it in child_functions.php like this:
But that didn't work - it still shows after *every* post. Any suggestions on how/where I can accomplish this?
Posted 20 April 2013 - 12:20 AM Best Answer
Hi there, see Simon's example of the hook near the bottom of the page on this thread -
Posted 20 April 2013 - 12:53 AM
Thank you! I did not search as well as I had thought. That worked perfectly (with a change to the math).