FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

PHP Fix. 50 Frih$

 


Scorpio
I am having my blog at www.siteguide.us.
In my blog run by wordpress, I am using the ocean mist theme and in the theme's index file I've included a php file using <?php include"something.php" ?>

something.php consists of ad code basically
The ad is inserted in every post by default
I do not want it to be inserted in one of the posts.
Also, in the text editor where I type in the post, PHP execution is possible as a result of the php exec plugin.

Is there any way I can prevent the ad from displaying in one particular post?

Get 50 Frih$ for the fix

Thank you
Hogwarts
Well, I can't do the fix for you but I can suggest something...
Code:
if (!$post[id] == "12") {
Advertisments.
}
else {
}


Sorry - I don't know too much about Wordpress to be of much help Sad
Scorpio
This fix was suggested by a friend of mine, but in the future I may want to avoid ads for some other posts as well.

So, putting a if clause for each of the post IDs won't work.

I need something to be put in the post(executed in the post content) to reverse the ad code.
Reply to topic    Frihost Forum Index -> Miscellaneous -> Marketplace

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.