admin管理员组

文章数量:1389951

I'm using banners/ads that are successfully displayed in every entry/post I created in my website.

¿Is there a way that banners can change to another banner according to some field in the destiny post/entry?

Someone said "Yes". Thank you.

How can that be done?

I'm using the HTML clause DIV to put the banners. It does not admit conditionals as far as I know, so I guess I have to combine that with some code. Am I right?. The theme I'm using allow me to place some JavaScript code. Can this JavaScript code reach the fields or information inside the destiny post/entry?

So I can say something like this:

if entry.tag="banner1" then UsedBanner="Banner1.jpg"

and the DIV clause would receive the content of UsedBanner and display a banner that can be different for every entry/post.

Where can I find specific information about this subject?

本文标签: phpConditional Banners