1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress Help

Discussion in 'Blogging' started by Sliar, Dec 11, 2011.

  1. Sliar

    Sliar Regular Member

    Joined:
    Sep 11, 2009
    Messages:
    344
    Likes Received:
    41
    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 :)
     
  2. flexnds

    flexnds Power Member

    Joined:
    Jan 4, 2010
    Messages:
    643
    Likes Received:
    680
    Occupation:
    Internet Marketing, Web development, Internet Repu
    Location:
    AZ
    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.
     
  3. jerdude

    jerdude Jr. VIP Jr. VIP Premium Member

    Joined:
    Feb 27, 2009
    Messages:
    119
    Likes Received:
    14
    Home Page:
    To target certain categories, I use wptraffic tools. It is a paid plugin but works like a charm.
     
  4. acotut

    acotut Elite Member

    Joined:
    Dec 1, 2010
    Messages:
    2,294
    Likes Received:
    1,040
    Gender:
    Male
    Home Page:

    Mate,you went way too further with blackhat techniques and the income won't worth the time,or maybe is just me...
     
  5. Sliar

    Sliar Regular Member

    Joined:
    Sep 11, 2009
    Messages:
    344
    Likes Received:
    41
    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
     
  6. flexnds

    flexnds Power Member

    Joined:
    Jan 4, 2010
    Messages:
    643
    Likes Received:
    680
    Occupation:
    Internet Marketing, Web development, Internet Repu
    Location:
    AZ
    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.
     
  7. Sliar

    Sliar Regular Member

    Joined:
    Sep 11, 2009
    Messages:
    344
    Likes Received:
    41
    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
     
  8. flexnds

    flexnds Power Member

    Joined:
    Jan 4, 2010
    Messages:
    643
    Likes Received:
    680
    Occupation:
    Internet Marketing, Web development, Internet Repu
    Location:
    AZ
    HTML:
    
    <div class="imgholder">
    
    <?php if (is_category('Category A')) : ?>
    <img src="">
    <?php elseif (is_category('Category B')) : ?>
    <img src="">
    <?php else : ?>
    
     </div>
    
    
     
    • Thanks Thanks x 1
  9. Sliar

    Sliar Regular Member

    Joined:
    Sep 11, 2009
    Messages:
    344
    Likes Received:
    41
    Would that go in the style sheet or the themes index file? I really want to give this a try
     
  10. flexnds

    flexnds Power Member

    Joined:
    Jan 4, 2010
    Messages:
    643
    Likes Received:
    680
    Occupation:
    Internet Marketing, Web development, Internet Repu
    Location:
    AZ
    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..
     
    • Thanks Thanks x 1
  11. Sliar

    Sliar Regular Member

    Joined:
    Sep 11, 2009
    Messages:
    344
    Likes Received:
    41
    I'm just surprised that this is not a built in feature, should I give the code a go?
     
  12. flexnds

    flexnds Power Member

    Joined:
    Jan 4, 2010
    Messages:
    643
    Likes Received:
    680
    Occupation:
    Internet Marketing, Web development, Internet Repu
    Location:
    AZ
    hold on.. let me clean up the code with your cat id's
     
    • Thanks Thanks x 1
  13. paulcarter97

    paulcarter97 Regular Member

    Joined:
    Nov 27, 2011
    Messages:
    392
    Likes Received:
    37
    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()