Black Hat Forum Black Hat SEO The only backlink provider with unlimited projects/links per day!
Go Back   Black Hat Forum Black Hat SEO > Black Hat SEO > Blogging

Blogging Talk about Wordpress, Blogger, and other blogs.
Blogs = Increased Spider Visits.

Mad Content   BLOG SEO
Search
 
LinkWheel

LiveChatAgent



Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-08-2010, 08:10 AM
egomOnia's Avatar
Registered Member
 
Join Date: Oct 2009
Posts: 92
Thanks: 278
Thanked 55 Times in 19 Posts
Reputation: 15
iTrader: (0)
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-08-2010, 09:57 AM
Regular Member
 
Join Date: Oct 2009
Posts: 298
Thanks: 52
Thanked 26 Times in 21 Posts
Reputation: 5
iTrader: (0)
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-08-2010, 10:12 AM
egomOnia's Avatar
Registered Member
 
Join Date: Oct 2009
Posts: 92
Thanks: 278
Thanked 55 Times in 19 Posts
Reputation: 15
iTrader: (0)
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to egomOnia For This Useful Post:
ghettogong (03-08-2010), thachcaodotcom (03-08-2010)
  #4 (permalink)  
Old 03-08-2010, 03:13 PM
Regular Member
 
Join Date: Oct 2009
Posts: 298
Thanks: 52
Thanked 26 Times in 21 Posts
Reputation: 5
iTrader: (0)
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 03-08-2010, 04:02 PM
mbceo's Avatar
Junior Member
 
Join Date: Feb 2009
Posts: 165
Thanks: 21
Thanked 25 Times in 18 Posts
Reputation: 10
iTrader: (0)
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:

Quote:
<?php the_content('Read the rest of this entry'); ?>
And then add the above ad code right below it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to mbceo For This Useful Post:
ghettogong (03-10-2010)
  #6 (permalink)  
Old 03-20-2010, 05:23 AM
Newbies
 
Join Date: Sep 2009
Posts: 34
Thanks: 3
Thanked 219 Times in 8 Posts
Reputation: 10
iTrader: (0)
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 05:36 AM. Reason: lacking
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 03-20-2011, 06:43 PM
reinie's Avatar
Jr. VIP
 
Join Date: Jan 2009
Posts: 1,149
Thanks: 571
Thanked 528 Times in 263 Posts
Reputation: 246
iTrader: (19)
Send a message via Skype™ to reinie
Default Re: Display ads only if the post title contains certain keywords

Which ads are you guys talking about here?
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 03-22-2011, 03:37 PM
Senior Member
 
Join Date: May 2009
Location: Lancashire, England.
Posts: 1,102
Thanks: 72
Thanked 136 Times in 87 Posts
Reputation: 24
iTrader: (0)
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-01-2011, 11:35 PM
Power Member
 
Join Date: May 2009
Posts: 629
Thanks: 123
Thanked 95 Times in 58 Posts
Reputation: 18
iTrader: (1)
Send a message via AIM to adbox
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.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
php , target ads , targeted ads , targeting ads , wordpress

Backlinks Genie

SE Nuke



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


SEO Paladin


Web Hosting
Copyright © 2005 - 2012 BlackHatWorld.com All rights reserved.