1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Making CB HopAds Context-Sensitive

Discussion in 'Clickbank' started by Tantalus, Mar 23, 2010.

  1. Tantalus

    Tantalus Registered Member

    Dec 14, 2009
    Likes Received:
    Right in front of the damned computer..
    Home Page:
    I want to put the CB HopAd script on my WP blog, but the content is based on the keyword(s) you put in the JS code. I'd like for the script to pick up on the context of each individual post, since they are sometimes about very different things.

    If there's a PHP variable that tells of the category of the post (I'm pretty sure there is) and if there's a way to set the value of the JS variable equal to the PHP category variable, then in theory it would become context sensitive. I just don't know enough about programming PHP or JS to figure out how to do it.

    Is there a way to get the current category post into this variable:
    hopfeed_keywords='my keyword';
    This is prolly really easy for a code guru, but I'm semi-clueless :shrug: