Y T Nuke  
Results 1 to 9 of 9
How can I display ads in relation to a certain keyword in the post title ...
  1. #1
    egomOnia's Avatar
    egomOnia is offline Registered Member
    Join Date
    Oct 2009
    Posts
    92
    Reputation
    15
    Thanks
    278
    Thanked 56 Times in 19 Posts

    Exclamation Display ads only if the post title contains certain keywords

    How can I display ads in relation to a certain keyword in the post title using wordpress?

    It's easy to display ads in certain categories only or only if the post contains certain tags. But I need a way to target ads based on a keyword in the post title.. example:

    "Top 10 Acne Home Remedies" -> acne -> show anti acne products only
    "Wart Removal Tips" -> wart -> show anti wart products only

    Can anyone help me on how to do this?

  2. #2
    ghettogong is offline Regular Member
    Join Date
    Oct 2009
    Posts
    302
    Reputation
    5
    Thanks
    55
    Thanked 26 Times in 21 Posts

    Default

    Quote Originally Posted by egomOnia View Post
    How can I display ads in relation to a certain keyword in the post title using wordpress?

    It's easy to display ads in certain categories only or only if the post contains certain tags. But I need a way to target ads based on a keyword in the post title.. example:

    "Top 10 Acne Home Remedies" -> acne -> show anti acne products only
    "Wart Removal Tips" -> wart -> show anti wart products only

    Can anyone help me on how to do this?
    hey man, thats sound good when you are autoblogging and dont control what you post. I am trying to find that plugin too...

    by the way i am also looking for that plugin to show ads based on categories, you said its easy?
    Posted via Mobile Device

  3. #3
    egomOnia's Avatar
    egomOnia is offline Registered Member
    Join Date
    Oct 2009
    Posts
    92
    Reputation
    15
    Thanks
    278
    Thanked 56 Times in 19 Posts

    Post Re: Display ads only if the post title contains certain keywords

    No need for a plugin. Here's a simple way how to achieve the desired functionality:

    Code:
    <?php if (in_category('category-slug-1')) { ?>
    your ad code for category 1
    <?php } elseif (in_category('category-slug-2')) { ?>
    your ad code for category 2
    <?php } elseif (in_category('category-slug-3')) { ?>
    your ad code for category 3
    <?php } else { ?>
    leave blank or insert general ad code for categories not determined above
    <?php } ?>
    Place it wherever needed. Put it in your theme's template or use a php ready widget.

    Using category specific ads you can already target your advertising efforts quite well to increase conversions. I'm using methods like this one for all my autoblogs.

    If I could help you, please hit the thanks button.

  4. The Following 2 Users Say Thank You to egomOnia For This Useful Post:

    ghettogong (03-08-2010), thachcaodotcom (03-08-2010)

  5. #4
    ghettogong is offline Regular Member
    Join Date
    Oct 2009
    Posts
    302
    Reputation
    5
    Thanks
    55
    Thanked 26 Times in 21 Posts

    Default Re: Display ads only if the post title contains certain keywords

    Thanks given 4 sure!

    Only, if i wanted to show ads below the post were would i paste the code?

  6. #5
    mbceo's Avatar
    mbceo is offline Junior Member
    Join Date
    Feb 2009
    Posts
    166
    Reputation
    10
    Thanks
    21
    Thanked 25 Times in 18 Posts

    Default Re: Display ads only if the post title contains certain keywords

    Quote Originally Posted by ghettogong View Post
    Thanks given 4 sure!

    Only, if i wanted to show ads below the post were would i paste the code?
    Find this code in the single.php file:

    <?php the_content('Read the rest of this entry'); ?>
    And then add the above ad code right below it.

  7. The Following User Says Thank You to mbceo For This Useful Post:

    ghettogong (03-10-2010)

  8. #6
    lhurey is offline Newbies
    Join Date
    Sep 2009
    Posts
    35
    Reputation
    10
    Thanks
    3
    Thanked 220 Times in 8 Posts

    Default Re: Display ads only if the post title contains certain keywords

    Quote Originally Posted by egomOnia View Post
    No need for a plugin. Here's a simple way how to achieve the desired functionality:

    Code:
    <?php if (in_category('category-slug-1')) { ?>
    your ad code for category 1
    <?php } elseif (in_category('category-slug-2')) { ?>
    your ad code for category 2
    <?php } elseif (in_category('category-slug-3')) { ?>
    your ad code for category 3
    <?php } else { ?>
    leave blank or insert general ad code for categories not determined above
    <?php } ?>
    How to do this on pages like www*domain*com/about-us/ and
    www*domain*com/about-us/contact-us
    Last edited by lhurey; 03-20-2010 at 04:36 AM. Reason: lacking

  9. #7
    reinie's Avatar
    reinie is online now Jr. VIP
    Join Date
    Jan 2009
    Posts
    1,168
    Reputation
    277
    Thanks
    626
    Thanked 541 Times in 273 Posts

    Default Re: Display ads only if the post title contains certain keywords

    Which ads are you guys talking about here?
    10 year old premium domain InstallSoftware.com for sale. Make me an offer

  10. #8
    muchacho is offline Senior Member
    Join Date
    May 2009
    Location
    Lancashire, England.
    Posts
    1,173
    Reputation
    24
    Thanks
    75
    Thanked 163 Times in 94 Posts

    Default Re: Display ads only if the post title contains certain keywords

    You need the Wordpress plugin called 'Advertising Manager'

    Simply create the ad by adding the necessary code and then choose how the Ad will be displayed: only by category, tags, posts/pages or all.

    You can even create 2+ Ads with the same name and have them auto rotate.

    For example, create 10 Ads all called MyAd and set the max number to be displayed to 1... it'll then show 1 of the 10 randomly each time the page is loaded.

  11. #9
    adbox is online now Power Member
    Join Date
    May 2009
    Age
    26
    Posts
    640
    Reputation
    18
    Thanks
    136
    Thanked 96 Times in 59 Posts

    Default Re: Display ads only if the post title contains certain keywords

    Hi man,

    I've a a software solution that does just that:

    1. place ads by keywords detected in content (title & postbody).
    2. place ads by keywords detected in referrer url.
    3. place ads by post/page id
    4. place ads by category
    5. place ads targeting google traffic only.

    Now I actually have two plugins that can do this. WP Traffic Tools, (http://www.wptraffictools.com) which is this plus a handful of other powerful features and a lighter version that only handles the advertising (http://www.thebestadvertisingplugin.com)

    Both commercial. WPTT = 57.00 but worth it. TBAP = 10.00 and worth it.

Natural Slow Link Building


SEO Blasts - High quality link building service

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  SEnukeX SEO Software
Proudly Powered by Hostwinds.com Web Hosting Click Here For Exclusive BHW Discounts!

Cheap Web Hosting


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75