Wordpress Help

Sliar

Regular Member
Joined
Sep 11, 2009
Messages
341
Reaction score
42
Already tried the wordpress forums with no replies at all, thought you guys might be able to help :)



I am trying to add a picture to all posts in certain category's,
on the left where there is just a blank white space I would like to add a picture for each category automatically.
I tried Taxonomy Images and Category Images and I can add a picture to the category itself I can see in the admin panel, I don't know if i'm missing something or is there a way I can do this. Thanks to anyone who helps :)
 
One of the adsense plugins available will do this. I believe quick adsense plugin will do this as well.

If that does not what you want it to do, you could do a custom post template that you can quickly choose from a drop down when posting.
 
To target certain categories, I use wptraffic tools. It is a paid plugin but works like a charm.
 
Already tried the wordpress forums with no replies at all, thought you guys might be able to help :)



I am trying to add a picture to all posts in certain category's,
on the left where there is just a blank white space I would like to add a picture for each category automatically.
I tried Taxonomy Images and Category Images and I can add a picture to the category itself I can see in the admin panel, I don't know if i'm missing something or is there a way I can do this. Thanks to anyone who helps :)


Mate,you went way too further with blackhat techniques and the income won't worth the time,or maybe is just me...
 
One of the adsense plugins available will do this. I believe quick adsense plugin will do this as well.

If that does not what you want it to do, you could do a custom post template that you can quickly choose from a drop down when posting.
Not trying to put ads or adsense, I meant I imported a database and wanted to be able to just put a generic picture on all the posts in each category

Mate,you went way too further with blackhat techniques and the income won't worth the time,or maybe is just me...
No idea what your talking about
 
Not trying to put ads or adsense, I meant I imported a database and wanted to be able to just put a generic picture on all the posts in each category


No idea what your talking about

There are plugins that allow you to add ads to certain categories/pages/posts/archives. So instead of an ad use an image tag based on the categories/pages/posts/archives.
 
There are plugins that allow you to add ads to certain categories/pages/posts/archives. So instead of an ad use an image tag based on the categories/pages/posts/archives.
Like I said I don't want adds just pictures.

I'll just post the site so you can see what I mean

Code:
http://comegetdrunk.com/?cat=4

See how the recipes in the archive have a big white space to the left of the recipes? I want to be able to just fill all of those with 1 generic picture for each category
 
HTML:
<div class="imgholder">

<?php if (is_category('Category A')) : ?>
<img src="">
<?php elseif (is_category('Category B')) : ?>
<img src="">
<?php else : ?>

 </div>
 
HTML:
<div class="imgholder">

<?php if (is_category('Category A')) : ?>
<img src="">
<?php elseif (is_category('Category B')) : ?>
<img src="">
<?php else : ?>

 </div>

Would that go in the style sheet or the themes index file? I really want to give this a try
 
That is a rough draft.. I'll have to clean up the code.. But it would go in you category template.. Themes are different, so it could be category.php or it could be an archive.php file with a bunch of if statements.. But definitely not in your style sheet..
 
That is a rough draft.. I'll have to clean up the code.. But it would go in you category template.. Themes are different, so it could be category.php or it could be an archive.php file with a bunch of if statements.. But definitely not in your style sheet..
I'm just surprised that this is not a built in feature, should I give the code a go?
 
I think you need a plugin, I can make one for you for $5 bucks. If you want admin panel to choose the picture for each category it will cos $10. PM me if you are initerested. Basically (if without plugin), you need to find the block code which display your post usually the loop (every theme has different locaation on the loop). And insert your image before the_content()
 
Back
Top