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.

Pages: 1 2 3 4


One Response to “Writing One Really Simple WordPress Plugin”

  1. July 25th, 2006 at 6:59 am

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

    - Jimy
Leave a Reply