Making CB HopAds Context-Sensitive

Tantalus

Registered Member
Joined
Dec 14, 2009
Messages
75
Reaction score
23
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:
Code:
hopfeed_keywords='my keyword';
This is prolly really easy for a code guru, but I'm semi-clueless :shrug:
 
Back
Top