Writing One Really Simple WordPress Plugin
Making things Work
OK, our next step is where all the magic is done. Our goal is simple, echo some text onto a page in a specific spot. First, what we need to get is the code from Google. Head over to Google and build the ad that you want, copy it and paste it into your template file where we currently have "//next step will go here."
You're going to want to add the echo command at the start of the line and then follow it with a semi-colon. In the end it should look something like this.
the functionfunction rotw_showAd() {
echo " //Google AdSense code goes here
//and across multiple lines like so
// then ends with
";
}
Just like that you're two steps away from finishing your first plugin.



The necessary plugin (:
- JimyIt is established easily and perfectly works.
Thank u so much!