-
Recent Posts
Browse Tips by Category
Advertising, Marketing & Communication Tips
- Black Friday 2009 Deals
- News From AdSense: Up to Three Link Units Allowed per Page
- We Do Insurance Since 180 Years Ago
- They never used to make them like this
- Post level text link ads now available
Family & Relationships Tips
- Tips For Remarkable Halloween Costumes
- How Christmas Gifts Can Ruin Relationships
- Killing Me Slowly With Your Love
- The Eight Myths And Truths Of Parenthood
- Are friendship and love unconditional?
General Tips
- Dirty Blue Widgets Poetry Jam Sessions Are Officially Open
- Shit Doesn’t Happen. Shit Is The Rule.
- Do You want A Good Laughter? Check Out These Links!
- Happy Birthday Sweet 40
- Daylight Savings Time: Spring Forward With The Spring
Health & Fitness Tips
- Busy? Buy a Massage Chair and Relax
- Guess Who Is Fooling Around On Your Head Right Now?
- Psoriasis: When Your Skin Reacts To Stress
- Pro Ana Tips And Tricks: Are Such Websites Helpful or Harmful?
- How to track your weight with Google
Household, Garden & Various Hobbies Tips
- Chemical Free Cleaning: How Effective Is It?
- Curiously Awesome Gifts
- Lawn Care: How to make a beautiful lawn in one day
- Original chairs and table kit for small places
- Cleaning products tips and tricks
Lifestyle Tips
- Romanian Real Estate Market and the International Financial Crisis
- Happiness In 7 Simple Tricks
- How I Turned Down The Job Of My Dreams
- Bling H2o: The Rolls Royce Of Water
- What Kind of a Lifestyle Designer Are You?
Money & Career Tips
- Freedom: Debt Management Is the First Step
- Online Home Business Newcomers Tips
- Five Questions New Entrepreneurs Could Ask Themselves
- An Unusual Way Of Making Money Online
- How Blogging Can Help You To Start Your Own Business
Personal Development Tips
- Never Ask Yourself Who’s The Boss! You Are!
- What Drives Your Blog?
- Eternity Management In 33 Not So Simple Tricks
- All For Time and Time For All: The 10 Commandments of Time Management
- Get Rid Of Yer Shit: Craig Is Collecting!
Pets Tips
- Do Pet Names Matter?
- Wedding Paws, Spiders, Travel Stories And Reality: 1001 Cats Blog Carnival
- Cats Can Lough Out Loud Sometimes
- When Cats Think It’s All Fun And Games
- Love Me Like You Love Your Cat!
Photography Tips
- How To Remove Unwanted Items From Your Photos
- Take photos deep in water with polarization filters
- How to check if your photo camera can take infrared photos
Tech & Internet Tips
- How To Enable Flash On The iPad
- Productivity Tip For iPhone Owners: Get iAdd For iPhone
- The Biggest iPhone 4 Cases And Skins List Ever Written
- iPhone 4 Presented At Apple’s WWDC 2010: Cell Phones Revolution?
- Quick Tip To Find Cool iPad Accessories Quickly
Wordpress Tips
- Is a Joomla Template Setup Easier than a WordPress One?
- New WordPress Themes Directory
- New WordPress Theme Released: Do You Like It?
- How A WordPress Plugin Ate Two Days Of My Life
- Who Got My $100 For Developing A WordPress Plugin
Microsoft Office Tips
- Wireless networks standards
Tutorials Tips
- Apple iPhone 4 Case Program: Do You Qualify?
- iPhone 4 Antenna Problem? Here’s How To Fix It
- The Biggest iPhone 4 Cases And Skins List Ever Written
My Friends
How to remove ads from a single post only
If your answer is yes, then you might to know how to remove the ads from only one single post.
This is very useful if you write something that has a good potential of getting to the front page of social sites. In such cases, it is strongly advisable not to have lots of ads on the page, because your readers will appreciate more a clean, easy to read article, than one which is fragmented or surrounded by ads.
I encountered this advice given by Andy Hagans, an important link baiting expert, and I think he is right. This is what he says:
I was never able to follow this advice, because I did not want to remove ads from my archives (besides, I never wrote such juicy link baiting pieces of information). The most common solution would be to use AdSense Deluxe plugin, and to set it not to show ads on that single post. Unfortunately, I don’t have the plugin installed, and with a blog having more than 200 posts, I would have had to edit every post in order to make them behave independently – this was definitely out of the question.
The solution came while reading a PHP book and wondering about why is it necessary to use
==whenever we want to define an equality relationship. Wouldn’t one single=sign be enough?A few rows later, I encountered the combination of
!=marks, with the meaning of a negation.Of course! By applying this negation mark to a conditional clause, we can tell WordPress to put the ads on all posts, except one. This is the code:
<?php if( !is_single('Name of the post') ) : ?>your ad code is here
<?php endif; ?>
This would translate in English like this: “if we are on a single post page, which is not entitled ‘Name of the post’, then display these ads”. The wondrous exclamation mark does the job.
You insert this code in the single post template file. Then, when you need to get rid of the ads from one post, you edit the template by replacing Name of the post with the actual name of your post (it also works if you put there the post number, or the post slug).
Do you know a better method for removing ads from a particular post in your WordPress blog?
You may also like these tips and tricks: