ClickBank has a great tool - HopAd builder. It is really easy to use and absolutely everyone can create own Text Ads or Tabbed Ad Box. Just enter keywords, CB ID and Tracking ID. After that, choose the layout and colors You like and that's it. Now You have to paste the script from HopAd builder to Your WP blog and You have Your own Ads running. It works fine, if You have a niche blog.
But what if Your blog has many different categories and niches? Let's say You are running article directory using WordPress. There You have a problem to show related HopAds on every page.
There is an easy solution. You can use tags as keywords. You just have to add a little script to HopAd code.
Here is the code You have to put instead the keywords (see the code below):
hopfeed_keywords='$tags = get_the_tags($post->ID);
if ($tags && is_array($tags)) {
foreach ($tags as $tag) {
echo $keywords[] = $tag->name . ', ';
}
}
?>';
Or see the picture below.
NB! This solution will work only if You add the code to template. It does not work with widgets.
To make it show related ads, You just must add tags to every post You publish. Easy ![]()
Regards,
Juri