Wordpress: How to put Ad under Image

habanerolex

Junior Member
Joined
Jun 16, 2011
Messages
156
Reaction score
42
Hello,

is there an easier way to put an Ad under the Image on the Attachment Page in Wordpress?
Let's say I have a Gallery and it links to the Attachment Page, I could put the Ad code under each Image in the Description Field. (see screenshot).
But that would be too much work. If I have a Gallery with 40 Images, I would have to Paste the code 40 times....
Images in the same Category should have the same Ad under the Image.
I tried some Ad Plugins, but none seems to be able to do this.

Thanks.
 

Attachments

  • ads-under-image.jpg
    ads-under-image.jpg
    31.3 KB · Views: 39
Are you expecting the ad link to be visited when someone clicks on the image link??
 
Hey anybody please help.I seen someone doing that but I need to know that as well.
 
Im sure there is a plugin for that. I don't use that feature, so I don't know a specific one, but do a little research and Im sure you can find one
 
Are you expecting the ad link to be visited when someone clicks on the image link??
no, i just want to have a Banner under the Image. The Image can't be clicked anyway.
 
I still can not find a Solution for this. I tried a lot of Ad Plugins, but nothing seems to be able to do this job.
The Plugin "Faster Image Insert" has the feature of mass editing Images. So if you have a gallery with 20 Images, you can mass edit Image Titles, Image Alt-text and Image Captions of all 20 Images and once. But unfortunately you can not edit the description. I have no idea how to do this.
 
Don't, Google will ban you for it.

You need to make the ad distinctive from the content.
 
It has to be done manually. Check for this in single.php

<?php if ( has_post_thumbnail()) : ?>

and insert a div right after. Should do the trick.
 
Back
Top