How can I display ads in relation to a certain keyword in the post title ...
-
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?
-
-
-

Originally Posted by
egomOnia
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
-
-
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.
-
The Following 2 Users Say Thank You to egomOnia For This Useful Post:
ghettogong (03-08-2010),
thachcaodotcom (03-08-2010)
-
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?
-
-
Re: Display ads only if the post title contains certain keywords

Originally Posted by
ghettogong
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.
-
The Following User Says Thank You to mbceo For This Useful Post:
-
Re: Display ads only if the post title contains certain keywords

Originally Posted by
egomOnia
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
-
-
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
-
-
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.
-
-
Re: Display ads only if the post title contains certain keywords
Hi man,
I've a a software solution that does just that:
- place ads by keywords detected in content (title & postbody).
- place ads by keywords detected in referrer url.
- place ads by post/page id
- place ads by category
- 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.
-
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks