views:

92

answers:

1

Hello!

I've been asked to come up with a plan (and implement) a way to customize ad campaigns on an individual post basis. Some background info: Our site in question runs off of Wordpress MU 2.7, and in our theme files we include calls to our ad server to display ads etc. This is managed with our own custom ad plugin, so we can easily extend its functionality.

The end user experience needs to be that the user should be able to select from a list of external affiliates (preferably in the post edit screen) that determines the ad channel that is displayed on that post. The affiliate keys and values come from a separate source, but the important thing is to save the affiliate id with the post information so we can pull it out and display the targeted ad on theme files.

Now, I have an idea on how to do this and it involves saving the affiliate id as a custom field for that post, then pulling it out based on if that custom field has been set or not. Would there be another solution which would be more elegant?

Would anyone be able to share a similar experience and or solution for ad targeting on specific posts, categories, tags etc. using the Wordpress framework?

Thanks, Acorn

A: 

The way I would do it would be based on categories and tags as you mentioned for the particular post.

jimiyash
Interesting. So, instead of a custom field (affiliateid) > post relationship, I could map certain tags to affiliates. The only thing I see here is that I'd have to build an admin interface for mapping affiliates to tags.
Acorn
You may want to register your own custom taxonomy http://codex.wordpress.org/Function_Reference/register_taxonomy in 2.8 you'll automatically get an admin interface built for you.
Tom