I tried to add adsense in the home page, but only in the first post, i know is a loop but i need to add a banner only in the first post, not in all the post, this is the code I tried:
Thanks in advanced!
You are using a code from Brad Dalton (WPSites.net). You might want to post your question over to him.
I did write about this on my blog as well as answer a question on these forums which provides the solution however i cannot find it.
Basically it uses a conditional tag for the home page and some other code so it only displays the content on the first post which changes as soon as your publish a new one.
Volunteer who’s written 1814 tutorials & 3000+ Code Snippets
Do you know where i cant find those variables to create that conditional, I already tried different conditionals, but without success.
I know I need to insert the adsense code after the id="content", or only execute the code in the first post
Brandon, Can you recommend me a tutorial where i can learn how to use the genesis framework, please!
You must be logged in to reply to this topic.
Subscribe to get early access to new themes, discounts and brief updates about what's new with StudioPress!