Extension „amazonize “ for TicTap Contextual Ads – WordPressPlugin

I wrote a small extension for TicTap Contextual Ads – WordPressPlugin

It’s realy realy realy quick and dirty. 😮

Maybe I will write a wordpress-plugin. Sometime 🙂

Ich habe eine Erweiterung für TicTap Contextual Ads – WordPressPlugin geschrieben. Hingerotzt trifft es eher :-).

Wenn mal Zeit ist, mach ich auch WordPress-Plugin draus. Mal schauen.

Example ————————————————————————————–>

The Code of Extension „amazonize „

< ? function amazonize ($theContent) { global $post; $amazon_id = get_post_meta($post->ID, ‚amazon_id‘, true);
if ( $amazon_id == “) return $theContent;
$amazon_img = get_post_meta($post->ID, ‚amazon_img‘, true);

$amazon_div = ‚


return $amazon_div.$theContent;

// add this in top of main index.php of your wordpress
add_filter(‚the_content‘, ‚amazonize‘);

//and change your Amazon id!

How to use?

If you use WordPress you can add 2 wordpress custom fields : amazon_id and amazon_img.

amazon_id = 363601384X

Kommentar verfassen

%d Bloggern gefällt das: