Separate ad for Separate Category in WORDPRESS

Discussion in 'WordPress' started by mandaar, Apr 30, 2010.

  1. #1
    hi guys...
    Basically, I'm going to start a news website. and I want to place separate ads for Seperate categories. Is it possible in wordpress to do this job? Any suggestion about plugin?
    In short I want to place "ABC" ad in "Breaking News" category and "XYZ" ad in "News Flash" Category.. so, is it possible in wordpress, using any Plugin or any other way?

    Please Suggest.

    Thank You in Advance !
     
    mandaar, Apr 30, 2010 IP
  2. 500ml

    500ml Peon

    Messages:
    281
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    YES this is pretty easy to do, there are many ways to do it, the best way i found is to use an AD manager plugin like OIO Publisher

    1. install plugin
    2. setup your category ad campaigns
    3. place the code for each ad campaign "category" in the appropriate widget, post, or the theme itself.

    Let me know if you have any further questions
     
    500ml, Apr 30, 2010 IP
  3. sevnrock

    sevnrock Peon

    Messages:
    241
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Very simple to do with easy PHP coding

    In the header.php or wherever your ad is being placed, you would put

    
    <?php if (is_category('Breaking News')) { 
    // Your Code for ABC Ad }
    else if (is_category('News Flash')) {
    // Your Code for XYZ Ad }
    else {
    // Your Code for default Ads
    } ?>
    
    Code (php):
     
    sevnrock, Apr 30, 2010 IP
  4. windy

    windy Active Member

    Messages:
    1,093
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #4
    yes it possible . just edit some .php files
     
    windy, May 1, 2010 IP