Dynamically inserting channel code

Discussion in 'Reporting & Stats' started by JesseM, Jul 12, 2006.

  1. #1
    I'm running a site with multiple content-heavy pages and have started putting adsense up. The site is running w/ wordpress as the CMS of sorts, and I want to have the AS code in the templates (not per post). I've messed with some WP plugins but didn't find any that did what I wanted.

    So I want to be able to dynamically insert the channel code based on a parameter I pass in the URL. I'll just do it with the $_GET[channel] in PHP. My question: 1) will this work? (I'm not sure which events happen when, does AS load and then the php, or does the php load first?) and 2) I read the TOS and they say you should alter the code, but should paste it directly from a website. That really makes an otherwise simple task rather tedious. Thoughts?
     
    JesseM, Jul 12, 2006 IP
  2. JesseM

    JesseM Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think I found my answer. The php loads first, then the AS. It appears to be working great.
     
    JesseM, Jul 13, 2006 IP